Well, let me explain what im trying to achieve.
I have a data.frame just like this:
And im trying to use pivot_wider to keep one ID per row and spread the other columns like this:
Im strugling with pivot_wider, values_from argument... Any toughts?
Heres my example df
df<- data.frame(ID = c(1,1,2,2,3,3),
category = c("A","B","A","C","A","C"),
date = c(Sys.Date(), Sys.Date()-10, Sys.Date(),
Sys.Date()-10, Sys.Date(), Sys.Date()-10))

