0

I want to convert the values of the second and third columns of the dataframe below to one column with 6 rows.

fi<-c("a","b","c")
se<-c("d","e","f")
th<-c("g","h","1")
daf<-data.frame(fi,se,th)

Im trying something like:

for(i in 1:nrow(fi)){
  First <- data.frame(t(daf[i,-1]))
}
firmo23
  • 6,014
  • 1
  • 20
  • 70

0 Answers0