0% found this document useful (0 votes)
7 views4 pages

R Lab Guide: Upload & Visualize Data

This document provides instructions for using an R lab environment for data science projects. It explains how to 1) access the R lab, 2) upload datasets up to 20MB in size or split larger files, 3) delete datasets, 4) create and save R scripts, 5) run code, and 6) create visualizations like histograms. Sample code is provided to read in a CSV file and create a histogram of the age column.

Uploaded by

Cười SML
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)
7 views4 pages

R Lab Guide: Upload & Visualize Data

This document provides instructions for using an R lab environment for data science projects. It explains how to 1) access the R lab, 2) upload datasets up to 20MB in size or split larger files, 3) delete datasets, 4) create and save R scripts, 5) run code, and 6) create visualizations like histograms. Sample code is provided to read in a CSV file and create a histogram of the age column.

Uploaded by

Cười SML
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

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)

You might also like