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
  • 7,490
  • 2
  • 38
  • 114

0 Answers0