Accessibility Navigation:

Department of Statistics Logo







The International Year of Statistics (Statistics2013)
PARTNERS
National Institute of Statistical Sciences Logo
Statistical and Applied Mathematical Sciences Institute Logo
Bioinformatics Research Center Logo
Center for Quantitative Sciences in Biomedicine Logo
Department of

Statistics

NCSU Dept of Statistics
5109 SAS Hall
2311 Stinson Drive
Raleigh, NC 27695-8203

Tel: (919) 515-2528
Fax: (919) 515-7591



Introduction to C using R: Outline


Prereqs: A solid understanding of R and/or the Introduction to R course. 3rd year students or higher recommended.

This 10 week class will meet every Friday from 10:30am-11:30am in 1107 (SICL) SAS Hall. It will be an introduction to C programming for the purposes of improving performance in R. Each class will build on the previous ones, so you should plan to attend all of the classes. Some classes will be lectures, and some will be labs to reinforce concepts.


Course Outline


  • Week 1 (January 11th): Intro and Stat Department Resources
  • Week 2: Interpreted vs Compiled Code and Data Types
  • Week 3: C program structure, C/C++ output, Pointers
  • Week 4: LAB 1
  • Week 5: Calling C from R, C loops, if statement
  • Week 6: Passing R data to C, File I/O
  • Week 7: Structs, string functions, and organizing data
  • Week 8: Strings, File I/O
  • Week 9: R function in C
  • Week 10: BLAS and Matrix Multiplication



Course Evaluation: Word Doc - PDF
Copyright 2011 NCSU Department of Statistics
Comments / Problems: webmaster@stat.ncsu.edu
Privacy Statement
NCSU Policies