Sometimes you need to transpose a tibble, e.g. for better presentation of the data.
Assume this tibble: df <- tibble(department = c(“hand”,”orth”,”shoulder”,”foot”),
y2018 = c(510,1200,580,610),
y2019 = c(520,1100,680,510),
y2020 = c(530,1150,610,580),
y2021 = c(580,1190,650,710))