powered by
summary_statistics() Creates summary statistics table of all numeric variables in data
summary_statistics( data, probs = c(0, 0.05, 0.1, 0.25, 0.5, 0.75, 0.9, 0.95, 1), na.rm = T )
A tibble with the Mean, N (not NA) and probs selects for each numeric column
A data.frame, tibble or data.table
The quantiles to compute. Default is c(0, 0.05, 0.1, 0.25, 0.5, 0.75, 0.9, 0.95, 1)
whether to exclude NA's from calculations
This function computes the selected quantiles, mean and N values of all the numeric columns of data.
data <-data.frame(x = c(1:5), y = c(100, 200, 300, 410, 540), z = rep("c", 5)) summary_statistics(data)
Run the code above in your browser using DataLab