i am given the following data:
temperatures <- tibble(
month = c("January", "January", "May", "May", "September", "September"), statistic_type = c( "max", "min", "max", "min", "max", "min"),
value = c(19, 11, 13, 6, 13, 6)
)
and need to convert it into a different format to get this result: