Some Useful Cheat Sheets for R.

For beginners: https://rstudio.com/wp-content/uploads/2016/10/r-cheat-sheet-3.pdf

For stats: http://statweb.stanford.edu/~dlsun/60/Rcommands.pdf http://www2.stat.duke.edu/~mc301/R/Rcommands.pdf

R Markdown

R Markdown from R Studio https://rmarkdown.rstudio.com/lesson-1.html

R Markdown - The definitive Guide https://bookdown.org/yihui/rmarkdown/basics.html

Basic R Cheat Sheets

http://www.maths.usyd.edu.au/u/jchan/Rcommands.pdf

https://sites.calvin.edu/scofield/courses/m143/materials/RcmdsFromClass.pdf

https://www.webpages.uidaho.edu/~stevel/251/comR.pdf

https://statisticsglobe.com/r-functions-list/

Books

R For Beginners: https://cran.r-project.org/doc/contrib/Paradis-rdebuts_en.pdf

R for Dummies http://sgpwe.izt.uam.mx/files/users/uami/gma/R_for_dummies.pdf

Statistical Analysis with R for Dummies http://library.sadjad.ac.ir/opac//temp/19241.pdf

Undergraduate Guide to R http://www.biostat.jhsph.edu/~ajaffe/docs/undergradguidetoR.pdf

Beginner’s Guide to RStudio https://pages.stolaf.edu/wp-content/uploads/sites/257/2015/02/RStudioInfoFor272.pdf

UC Business Analytics R Programming Guide https://uc-r.github.io/quickplots

Commands We “Should” know:

Read a .csv file

read.csv(“DataSet.csv”)

Number of rows in a data set

nrow(MyDataSet)

Create a Frequency table out of a list of categorical data

table(MyCategoricalDataSet)

Create a Relative Frequency table out of a list of categorical data

table(MyCategoricalData)/nrow(MyCategoricalData)

Turn lists of data into a chart

cbind(List1, List2, List3)

Minimum and maximum values in a data set

min(MyDataSet) max(MyDataSet)

Summary statistics for a data set

summary(MyDataSet)

Create data bins for numerical data then put the data into the bins

breaks <- seq(11, 25, by=2) cut(TheDataSet, breaks, right=FALSE)

Create a histogram.

hist(ColumnOfNumericalData, main=“TitleOfTheGraph”, xlab=“xAxisLabel”, border=“black”, xlim=c(11,25), las=1, breaks=7)

Cumulative Frequency Table

cumsum(NumericalDataSet)

Variance and Standard Deviation

var(DataSet) sd(DataSet)

Boxplots

boxplot(NumericalDataSet, xlab = “xAxisLabel”, ylab = “yAxisLabel”)

Side by side boxplots.

boxplot(NumericalDataSet1, NumericalDataSet2, xlab = “xAxisLabel”, ylab = “yAxisLabel”, names = c(“Name1”, “Name2”), main = “TitleOfTheGraph”)