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?
cost_tib <- data %>%
max_child_cost = max(child_cost),
mean_child_cost = mean(child_cost),
sd_child_cost = sd(child_cost),
min_adult_cost = min(adult_cost),
max_adult_cost = max(adult_cost),
mean_adult_cost = mean(adult_cost),
sd_adult_cost = sd(adult_cost),
min_con_cost = min(con_cost),
max_con_cost = max(con_cost),
mean_con_cost = mean(con_cost),
sd_con_cost = sd(con_cost),
Thanks very much!