I have the following data.frame
df = structure(list(HEADER = c(\"HOME_TRPM\", \"AWAY_TRPM\", \"HOME_TEAM\",\"AWAY_TEAM\"), price = c(\"0.863
spread is retired, tidyr now suggests the usage of pivot_wide():
spread
tidyr
pivot_wide()
library(tidyverse) df %>% pivot_wider(names_from = HEADER, values_from = price)