Skip to content

Instantly share code, notes, and snippets.

@olih
Last active November 30, 2016 10:28
Show Gist options
  • Save olih/2782d0c443c492a2f0f519710918a7c0 to your computer and use it in GitHub Desktop.
Save olih/2782d0c443c492a2f0f519710918a7c0 to your computer and use it in GitHub Desktop.
R programming cheatsheet

Installation

On linux

sudo yum install -y epel-release
sudo yum install R

On Mac OS

brew tap homebrew/science
brew install r

Read a csv file

statsfile <- read.csv(file="stats.csv", head=FALSE, sep="|")

Gets a summary

summary(statsfile)

List files

dir()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment