chp3-handout.pdf
chp3.pdf
Chapter 3: Probability
?list
typeof(present) # data from hw1
list indexing: present[1]
, present[1,2]
single vs. double angle brackets
sequential list generation x<-1:10
length(x)
names(present)
attach, detach
present$boys
boys
attach(present)
girls
search
detach(present)
girls
write.csv(present, file="present.csv")
present2 <- read.csv(file="present.csv")
?read.csv
load()
and save()