Happy Weekends.
I\'ve been trying to replicate the results from this blog post in R. I am looking for a method of transposing the data without using t,
t
Using tidyr, you gather all the columns except the first, and then you spread the gathered columns.
tidyr
gather
spread
Try:
library(dplyr) library(tidyr) data %>% gather(var, val, 2:ncol(data)) %>% spread(Series.Description, val)