Miscellaneous:
- To generate a PDF report, open a the file ending in
.Rmd
, then press (On Mac: Cmd + Shift + K) or (Ctrl + Shift + K)
Statistics Books:
- OpenIntro Statistics
- Introductory Statistics with Randomization and Simulation
- Advanced High School Statistics
R and RStudio Installation:
- R Installation on Mac OSX:
> brew cask install xquartz r-app rstudio
- R installation on Linux (Fedora):
> sudo yum groupinstall "X Software Development
> sudo dnf install gcc-gfortran pcre-devel xz-devel lzma-devel bzip2-devel readline-devel
> wget https://cran.r-project.org/src/base/R-3/R-3.4.4.tar.gz
> tar xzvf R-3.4.4.tar.gz
> mv R-3.4.4 R
> cd R && ./configure
> make && make check
> sudo make install
- Run R Studio via Docker:
docker run --rm -p 8787:8787 -e "USER=user" -e "PASSWORD=password" -e "ROOT=TRUE" rocker/rstudio
Data Manipulation:
- Group by one or more variables
- Merging in R
- How to add a cumulative column to an R dataframe using dplyr?
- Select distinct/unique rows
Mapping with R: