I want to merge two columns of a data frame into one long column using R. I have a reproducible data below:
data<-data.frame(x=c(4,5,6,7,7,7),y=c(3,4,5,6,7,7))
We can use unlist
unlist
data.frame(new = unlist(data))