Lesson taken from http://f.briatte.org/teaching/ida/022_variables.html
# list workspace objects
ls()
## character(0)
# remove workspace objects
rm(list = ls())
# see if downloader packages is installed
#if (!"downloader" %in% installed.packages()[, 1]) install.packages("downloader")
# grab the data
file = "data/grades.csv"
grades <- read.table(file, header=TRUE)
head(grades)
## calc proba stats
## 1 18 7 15
## 2 15 10 14
## 3 4 3 8
## 4 7 9 14
## 5 20 12 19
## 6 3 4 4
# since this file will go through some iterations it will be installed already
if(!"randomNames" %in% installed.packages()[, 1]){
install.packages("randomNames", repos="http://cran.rstudio.com/")
}
require(randomNames)
## Loading required package: randomNames
## Warning: package 'randomNames' was built under R version 3.1.2
count = nrow(grades)