Statistics and Statistical Programming (Spring 2019)/R lecture outline: Week 3

From CommunityData
< Statistics and Statistical Programming (Spring 2019)
Revision as of 22:40, 2 April 2019 by Aaronshaw (talk | contribs) (Created page with "== Review of material from class == * loading data: ** load() versus read.csv() ** when things don't coopreate... ** library(foreign) * defining functions ** syntax for de...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Review of material from class

  • loading data:
    • load() versus read.csv()
    • when things don't coopreate...
    • library(foreign)
  • defining functions
    • syntax for defining functions: show the my.mean function
    • calling functions (your own or others) with apply(), lapply(), sapply()
  • stuff related to distributions
    • rep()
    • seq()
    • sample(); and sampling into data.frames
    • rbinom()? runif()?

Online only

  • dates with POSIXct(). dates will almost always be given to you as characters, and you need to parse them
  • tapply(), and putting things back into data.frames
  • merge()