Last chance! 50% off unlimited learning
Sale ends in
favstats
. Each of these computes the
mean, standard deviation, quartiles, sample size and number of missing values for a numeric vector,
but favstats
can take a formula describing how these summary statistics
should be aggregated across various subsets of the data.fav_stats(x, ..., na.rm = TRUE)
fav_stats(1:10)
fav_stats(faithful$eruptions)
favstats(length ~ sex, data=KidsFeet) # Note: this is favstats() rather than fav_stats()
Run the code above in your browser using DataLab