Syllabus

Course Code: ST-204    Course Name: Programming with C and R

MODULE NO / UNIT COURSE SYLLABUS CONTENTS OF MODULE NOTES
1 Overview of C: History of C, Importance of C, Structure of a C Program. Elements of C: Character set, identifiers and keywords, Data types, Constants and Variables. Operators and their hierarchy & associativity. Input/output in C.
Control statements: Sequencing, Selection: if and switch statement; alternation, Repetition: for, while, and do-while loop; break, continue, go to statement. Functions: Definition, prototype, passing parameters, recursion.
2 Storage classes in C: auto, extern, register and static storage class, their scope, storage and lifetime. Arrays: Definition, types, initialization, processing an array, passing arrays to functions.
Pointers: Declaration, operations on pointers, use of pointers. String handling functions Structure & Union: Definition, processing, Structure and pointers, passing structures to functions. Data files: Opening and closing a file, I/O operations on files.
3 Introduction to R: Overview of R programming, Evolution of R, Applications of R programming, Basic syntax; Basic Concepts of R: Reserved Words, Variables & Constants, Operators, Operator Precedence, Data Types, Input and Output; Data structures in R: Vectors, Matrix, List in R programming, Data Frame, Factor.
Control flow: If...else, If else() Function, For loop, While Loop, Break & next, Repeat Loop; Functions: R Functions, Function Return Value, Environment & Scope, R Recursive Function, R Infix Operator, R Switch function; Strings: String construction rules, String Manipulation functions
4 R packages: Study of different packages in R; R Data Reshaping: Joining Columns and Rows in a Data Frame, Merging Data Frames, Melting and Casting; Working with files: Read and writing into different types of files.
R object and Class Object and Class: R S3 Class, R S4 Class, R Reference Class, R Inheritance; Data visualization in R and Data Management: Bar Chart, Dot Plot, Scatter Plot (3D), Spinning Scatter Plots, Pie Chart, Histogram, Box plot, Plotting with Base and Lattice Graphics, Sorting Datasets, Merging Datasets; Statistical modelling and Databases in R: Mean, mode, median, Linear regression, Decision tree, K-means Clustering
Copyright © 2020 Kurukshetra University, Kurukshetra. All Rights Reserved.