My top 54 functions to know when using R

I was trying to figure out what I'd want to know if I were just learning R, and I think these might be my favorites. The list is not complete, and I welcome suggestions! I will also try to add some documentation to this so that it could be printed out and used for reference.

  1. ls
  2. rm
  3. library
  4. install.packages
  5. list.files
  6. getwd, setwd
  7.  apply
    • mapply
    • sapply
    • lapply
  8. str
  9. dim
  10. colnames
  11. rownames
  12. names
  13. summary
  14. %in%
  15. which
  16. c
  17.  plot
    • points
    • lines
  18. image
  19. matplot
  20. hist
  21. heatmap
  22. density
  23. par
  24. layout
  25. legend
  26. text (mtext?)
  27. t
  28. na.omit
  29. read.table
  30. write.table
  31. as. (as.character, as.numeric, as.matrix...)
  32. data.frame
  33. aggregate
  34. merge
  35. reshape
  36. order
  37. sort
  38. cbind/rbind
  39. lm
  40. nls
  41. optim
  42. unique
  43. sum
  44. cumsum
  45. diff
  46. setdiff
  47. intersect
  48. rnorm
  49. sample