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?
A very simple and very effective way to supply some data is to use the dput() command.
dput(mydata)
and then simply copy the output and paste it here. If you have a very large data set then a sample should be fine. To supply us with 100 rows of your data set do
dput(head(mydata , 100))
where mydata is the name of your dataframe or tibble