Practice: Statistical Summary

Functions for individual quantities like mean or median are convenient when we want to use that specific number in further analysis or visualizations, but the function summary and its alternatives are great for exploratory analysis. In the exercise, you can practice both approaches. This exercise does not count toward your grade. It is just for practice!

Exercise Instructions:

  1. Use the variable Agriculture in the built-in dataset swiss
  2. Use the base-R functions mean, sd, and quantile to get the summary statistics for this variable. 
  3. Use the summary and psych::describe functions to get the summary statistics for all variables at once.
Last modified: Friday, December 16, 2022, 12:07 PM