Top 47 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. hist
  19. heatmap
  20. density
  21. par
  22. layout
  23. legend
  24. text
  25. mtext
  26. colorRampPalette
  27. read.table
  28. write.table
  29. as. (as.character, as.numeric, as.matrix...)
  30. data.frame
  31. aggregate
  32. merge
  33. reshape
  34. order
  35. sort
  36. cbind/rbind
  37. lm
  38. nls
  39. optim
  40. unique
  41. sum
  42. cumsum
  43. diff
  44. setdiff
  45. intersect
  46. rnorm
  47. sample