Monday, February 15, 2021

Learning R & R Studio


 

Installing R & R Studio

https://www.lynda.com/RStudio-tutorials/RStudio-install/452087/490022-4.html?org=qc.cuny.edu

 Online Learning R Studio

https://www.rstudio.com/online-learning/#R 

Read a csv file and save it in a new data frame:
newdataframe <- read.csv("datafile.csv")

Add a new column to an existing data frame:
https://lembra.wordpress.com/2010/03/12/adding-new-column-to-a-data-frame-in-r/

https://discuss.analyticsvidhya.com/t/how-to-add-a-column-to-a-data-frame-in-r/3278

Add a new column to a data frame:

Add a sequential number to a colum:
data$ID <- seq.int(nrow(data))

 

Definition of Data frame: http://www.r-tutor.com/r-introduction/data-frame