r Programming
r Programming
Com – (IT)
SEM - 3
Credits 4
Learning Objectives: (for teachers: what they have to do in the class/lab/field)
To understand and able to use basic programming concepts
To automate data analysis, working collaboratively and openly on code
To know how to generate dynamic documents
Course Outcomes: (for students: To know what they are going to learn) CO1: To
understand the problem solving approaches
CO2: To learn the basic programming constructs in R Programming CO3: To learn
the basic programming constructs in R Programming CO4: To use R Programming
data structures - lists, tuples, dictionaries. CO5: To do input/output with files in R
Programming.
Units Contents
Introduction to R programming: What is R? - Installing R and R Studio –
R Studio Overview - Working in the Console - Arithmetic Operators – Logical Operations - Using
I Functions - Data structures, variables, and data types in R: Creating Variables - Numeric, Character
and Logical Data - Vectors -Data Frames - Factors -Sorting Numeric, Character, and Factor Vectors -
Special Values.
CONTROL STRUCTURES AND VECTORS -Control structures, functions, scoping rules, dates and
times, Introduction to Functions, preview of Some Important R Data Structures, Vectors, Character
Strings, Matrices, Lists, Data Frames, Classes Vectors: Generating sequences, Vectors and subscripts,
II Extracting elements of a vector using subscripts, Working with logical subscripts, Scalars, Vectors,
Arrays, and Matrices, Adding and Deleting Vector Elements, Obtaining the Length of a Vector,
Matrices and Arrays as Vectors Vector Arithmetic and Logical Operations, Vector Indexing, Common
Vector Operations
Math Functions, Calculating a Probability, Cumulative Sums and Products, Minima and Maxima,
III Calculus, Functions for Statistical Distributions
Data Visualization using R: Scatter Plots - Box Plots - Scatter Plots and Box and- Whisker Plots
Together -Customize plot axes, labels, add legends, and add colours