0% found this document useful (0 votes)
4 views2 pages

R Programming Notes

The document provides an overview of R programming, covering essential concepts from Units 1 to 5, including data types, structures, and functions. It discusses variable management, operators, control structures, and data manipulation techniques. Additionally, it highlights descriptive statistics and graphing functions for data analysis.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

R Programming Notes

The document provides an overview of R programming, covering essential concepts from Units 1 to 5, including data types, structures, and functions. It discusses variable management, operators, control structures, and data manipulation techniques. Additionally, it highlights descriptive statistics and graphing functions for data analysis.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

R Programming Notes (Unit 1–5)

UNIT 1

R: Programming language for data analysis & statistics.

Features: Cross-platform, packages, visualization.

Variables: Store data, no type declaration, use <-.

Data Types: Numeric, Integer, Logical, Character.

Data Structures: Vector, List, Matrix, Array, Factor, Data Frame.

Packages: [Link](), library().

I/O: readline(), print().

Special Values: NA, NULL, Inf, NaN.

UNIT 2

Variables: Dynamic, no type declaration.

ls(): list variables, rm(): delete variables.

Operators: Arithmetic(+,-,*,/,%%,^), Relational(<,>,==), Logical(&,|,!).

Decision: if, if-else, switch.

Loops: for, while, repeat.

Control: break, next.

UNIT 3

Functions: function(), return().

Types: Built-in, User-defined.

Strings: nchar(), substr(), paste(), toupper().

Vectors: c(), same type.


Lists: list(), different types.

UNIT 4

Data Frame: Table format, [Link]().

Access: $, [row,col].

Modify: add column, rbind().

Working Dir: getwd(), setwd().

Files: [Link](), [Link](), read_excel().

UNIT 5

Descriptive Stats: mean, median.

Range: max-min.

Frequency: table().

Graphs: pie(), barplot(), hist().

You might also like