Manipulating Data
Johns Hopkins Bloomberg School of Public Health
Instructor: Jeff Leek
Youtube: http://www.youtube.com/JHSPHAppliedStat
Here is what data looks like in classes
Here is what data looks like in real life
Here is what data looks like in real life
Here is what data looks like in real life
view-source:http://espn.go.com/nba/standings
Data may also be in other formats
What do we want at the end?
�
�
[,]
which()
merge()
%in%
Set operations
tapply()
lapply()
sapply()
= lapply(x,f)