Completion requirements
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:
- Use the variable
Agriculture
in the built-in datasetswiss
. - Use the base-R functions mean, sd, and quantile to get the summary statistics for this variable.
- Use the
summary
andpsych::describe
functions to get the summary statistics for all variables at once.
Last modified: Friday, 16 December 2022, 12:07 PM