Statistics and Statistical Programming (Winter 2017)/R lecture outline: Week 2: Difference between revisions

From CommunityData
(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:...")
(No difference)

Revision as of 06:03, 5 January 2017

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