0% found this document useful (0 votes)
9 views

R-programming Syllabus

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

R-programming Syllabus

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

UNIT -I

Introduction to R: What is R?- Why R?- Advantages of Rover Other Programming Languages
- R Studio: R command Prompt, R script file, comments.
Handling Packages in R: Installing a R Package, Few commands to get started:
installed.packages(). package.Description(). help), find.package()., library() - Input and Output -
Entering Data from keyboard.
R-Data Types: Vectors, Lists, Matrices, Arrays, Factors, Data Frame.
R -Variables: Variable assignment, Data types of Variable, Finding Variable Is(), Deleting
Variables

UNIT - II
R - Operators: Arithmetic Operators, Relational Operators, Logical Operator, Assignment
Operators, Miscellaneous Operators.
R-Decision Making: if statement, if- else statement, if- else if statement, switch statement.
R- Loops: repeat loop, while loop, for loop - Loop control statement: break statement, next
statement.
R-Function: function definition, Built-inn functions: mean(), paste), sum), min), max(), seq),
user-defined function,calling a function, calling afunction without an argument, calling a function
with argument values.

UNIT - III
R-Strings: Manipulating Text in Data: substr), strsplit(), paste0, grep), toupper(0, tolower).
R- Vectors: Sequence vector, rep function, vector access, vector names, vector math, vector
recycling, vector element sorting.
R-List: Creating a List, List Tags and Values, Add/Delete Element to or from a List, Size of List,
Merging Lists, Converting List to Vector.
R- Matricés: Accessing Elements of a Matrix, Matrix Computations: Addition, subtraction,
Multiplication and Division.
R-Arrays: Naming Columns and Rows, Accessing Array Elements, Manipulating Array Elements,
Calculation Across Array Elements.
R- Factors: creating factors, generating factor levels gl().
R-Data Frames: Create Data Frame, Data Frame Access, Understanding Data in Data Frames:
dim), nrow0, ncol), str), Summary0, names), head), tail(), edit) functions -Extract Data from
Data Frame, Expand Data Frame: Add Column, Add Row - Joining columns and rows in a Data
frame rbind) and cbind) - Merging Data frames merge) Melting and Casting data melt), cast).
UNIT - IV
Loading and handling Data in R: Getting and Setting the Working Directory - getwd), setwd(0.
dir) -R-cSV Files - Input as a CSV file, Reading a CSV File, Analyzing the CSV File: summary(),
min(), max), range), mean(), median), apply(0 - Writing into a CSV File - R-Excel File - Reading
the Excel file.
Data Visualization through various plots and charts: bar charts, histogram, frequency polygon,
density plots, scatter plots, box & whisker plots, heat and contour plots, plotting the above graphs in
R, plotting with package ggplot2..

You might also like