R22-CMRTC B.
Tech-CSE(DS)
R PROGRAMMING (Open Elective – I)
B. Tech. VI Semester L T P C
3 0 0 3
Subject Code: 22DS612OE
Course Objectives:
1. To understand basic programming concepts.
2. To learn about iterative programming in R.
3. To demonstrate the use of vectors, matrices, factors, Data frames and Lists.
4. To know how to generate dynamic documents.
5. To identify the importance of data visualization techniques.
Course Outcomes: After the completion of the course the student will able to:
1. Explore basic concepts of R programming language.
2. Work with iterative programming in R.
3. Create vectors, matrices and list using R.
4. Develop R codes using iterative programming.
5. Correlate results to the solution approach.
UNIT – I [8 Lectures]
Introduction: Overview of R, R Data Types and Objects, Reading and Writing Data, Sub Setting R Objects,
Essentials of the R Language, Installing R, Running R, Packages in R, Calculations, Complex Numbers in R,
Rounding, Arithmetic, Modulo and Integer Quotients, Variable Names and Assignment, Operators, Integers,
Factors, Logical Operations.
UNIT – II [10 Lectures]
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, Extracting Elements of a Vector using Subscripts, Working with Logical
Subscripts, Scalars, Vectors, Arrays, 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.
UNIT – III [8 Lectures]
Lists: Creating Lists, General List Operations, List Indexing, Adding and Deleting List Elements, Getting the Size
of a List, Extended Example: Text Concordance, Accessing List Components and Values, Applying Functions to
Lists, Data Frames, Creating Data Frames, Accessing Data Frames, Other Matrix Like Operations.
UNIT – IV [8 Lectures]
Factors And Tables: Factors and Levels, Common Functions used with Factors, Working with Tables,
Matrix/Array Like Operations on Tables, Extracting a Sub Table, Finding the Largest Cells in a Table, Math
Functions, Calculating a Probability, Cumulative Sums and Products, Minima and Maxima, Calculus, Functions for
Statistical Distributions.
UNIT – V [8 Lectures]
Graphics: Creating Graphs, Customizing Graphs, Saving Graphs to Files, Customizing Graphs, Creating Three-
Dimensional Plots.
Debugging: Fundamental Principles of Debugging, Using R Debugging Facilities, Moving Up in the World: More
Convenient Debugging Tools, Ensuring Consistency in Debugging Simulation Code, Syntax and Runtime Errors,
Running GDB on R.
TEXT BOOKS:
1. The Art of R Programming by Norman Matloff, Cengage Learning India.
R22-CMRTC B. Tech-CSE(DS)
REFERENCE BOOKS:
1. R Programming for Data Science by Roger D. Peng
2. Hadley Wickham, Garrett Grolemund, R for Data Science: Import, Tidy, Transform, Visualize, and Model
Data 1st Edition, O’Reilly
3. Tilman M. Davies, The book of R a first course in programming and statistics, no starch press.
WEBLINKS:
1. [Link]
2. [Link]
3. [Link]
4. [Link]