Professional Documents
Culture Documents
12-Jul-2021 My R Data Analytics - Basics
12-Jul-2021 My R Data Analytics - Basics
Tushar B. Kute,
http://tusharkute.com
Prerequisites
fb.csv
Import the dataset
• read.csv()
– Reads a csv file in table format and creates a
data frame from it, with cases corresponding to
lines and variables to fields in the file.
Import the dataset
Reads csv file
No. of columns
No. of rows
Create subset
• subset( )
– Return subsets of vectors, matrices or data frames which
meet conditions.
– Usage:
subset(x, ...)
## Default S3 method:
subset (x, subset, ...)
## S3 method for class 'matrix'
subset (x, subset, select, drop = FALSE, ...)
## S3 method for class 'data.frame'
subset (x, subset, select, drop = FALSE, ...)
Creating the subset
Subset condition
New dataset of same columns
newfb.csv
Merge Datasets
Sort by share
- for descending
Transpose Datasets
/mITuSkillologies @mitu_group
Web Resources
http://mitu.co.in
http://tusharkute.com
tushar@tusharkute.com