The R programming language can be downloaded then installed from https://cran.r-project.org/index.html
Next download and install R Studio from https://posit.co/download/rstudio-desktop/
Install the R tutorial by opening R Studio, in a console install the package swirl and start the tutorial.
install.packages("swirl")
library(swirl)
swirl()
Following are the initial list of commands learnt from Swirl in lesson 1 to 4
skip(), play(), nxt(), bye(), main(), info()
c(), sqrt(), info()
help commands ?c , ?`:`
getwd(), ls(), list.files(), dir(), args(), getwd(), dir.create(), setwd(), file.create(mytest.R), file.exists(), file.info(), file.rename(from, to), file.path(),setwd(),unlink("testdir",recursive=TRUE)
seq(), seq(1,10, by=0.5), length(), rep(0, times=40),rep(c(0,1,2), times=10)
rep(c(0,1,2), each=10)
Happy R gramming!
No comments:
Post a Comment