I am trying to combine the first five columns of my data frame into one column and can't get it to work. This is the code I have set up for it and cannot figure out why it isn't working. When I run the code it runs without error, but it does not combine the columns. Any suggestions?
data.frame(fdecstats) %>%
unite(fdecstats, P1 , c(P1, P2, P3, P4, P5), sep = " ", remove = TRUE, na.rm = FALSE)