# NOT RUN {
library(dplyr)
# Calculate descriptives
descriptives <- describe_data(sleep, extra)
# Create a tidy data frame of the descriptives
tidy_describe_data(descriptives)
# With a grouping variable:
sleep %>%
group_by(group) %>%
describe_data(extra) %>%
tidy_describe_data()
# }
Run the code above in your browser using DataLab