Statistics and Statistical Programming (Winter 2017)/R lecture outline: Week 2
From CommunityData
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