summary() provides different output for each variable, depending on its class. For numeric data, summary() displays the minimum, 1st quartile, median, mean, 3rd quartile, and maximum. These values help us understand how the data are distributed. For categorical variables (called 'factor' variables in R), summary() displays the number of times each value (or 'level') occurs in the data.