Lab Demo | Data Science with R
1. Path to locate the Lab:
LMS account > Course Icon > Projects > Lab Access > R - Lab
2. How to upload the dataset:
Click on Your datasets > Upload New Dataset > Select a file from your local Machine
****Note – Maximum dataset size supported is 20 MB. If your dataset size exceeds the limit kindly
follow the steps mentioned below:
i. Upload the dataset on [Link]
ii. Split the dataset into 2 parts and download locally.
iii. Upload the 2 parts in the lab using the `Upload Datasets` option
iv. To concat and use the data from 2 input files use the code mentioned below:
data1 = [Link]("/data/[Link].000", sep = ":", colClasses = c(NA, "NULL"), header = FALSE)
data2 = [Link]("/data/[Link].001", sep = ":", colClasses = c(NA, "NULL"), header = FALSE )
data = rbind(data1, data2)
3. How to delete a dataset from the available datasets in the lab for R:
4. How to create a new R-Script:
5. Save your R- Script:
6. How to Run your code:
7. How to perform visualization:
**Sample Code:
HData <- [Link]("/data/[Link]")
# mandatory statement to perform any visualization, the output will
# be saved as a png file (i.e. [Link]) as mentioned below
png(filename = "/output/[Link]")
hist(HData$AGE)