Skip to main content

Section 6.7 R Functions Used in This Chapter

  • mean() Calculate arithmetic mean
  • median() Locate the median
  • mode() Tells the data type/mode of a data object.Important note: Surprisingly, this mode() is NOT a statistical mode. In fact, R does not have a standard in-built function to calculate the statistical mode.
  • var() Calculate the sample variance
  • sd() Calculate the sample standard deviation
  • hist() Produces a histogram graphic
You have attempted of activities on this page.