Statistics and Statistical Programming (Winter 2017)/R lecture outline: Week 2
From CommunityData
< Statistics and Statistical Programming (Winter 2017)
Revision as of 06:03, 5 January 2017 by Benjamin Mako Hill (talk | contribs) (Created page with "material not covered last week we'll want to cover this time: * adding comments: lines that start with # (or anything after a #) * more advanced variables types: ** factors:...")
material not covered last week we'll want to cover this time:
- adding comments: lines that start with # (or anything after a #)
- more advanced variables types:
- factors: for categorical data
- make with factor("mako", "mika", "mako")
- you can create factors from characters with as.factor()
- also think about: dates with POSIXct(), ordered() — really just a type of factor for ordinal data
- factors: for categorical data