I wanted to make a tibble containing the values of the range, mean and standard deviations for three variables from a data set (child_cost, adult_cost, con_cost). I have included my code below. Is there a tidier / quicker way of achieving this please?
In dplyr 1.0.0 the function across was implemented, which allows for this sort of multi-column manipulation. See here: dplyr 1.0.0: working across columns
df %>%
summarise(across(c(child_cost, adult_cost, con_cost),
list(min = ~min(.x),
mean = ~mean(.x),
max = ~max(.x))))