I have a dataset that looks like this:
Responseid <- c("Responseid",1,2,3,4)
q1 <- c("what is your gender",1,1,1,1)
q2 <- c("what is your age",18,28,15,40)
df <- data.frame(Responseid,q1,q2)
I'm wondering how to put all the row 1 values as a label for the column header, so something like this:
I have a dataset with a lot of variables and I want to put all the row 1 values as label for all the column header.
I would appreciate all the help there is! Thanks a lot!