0

Is there a way to split a dataframe row into segments (length 3) and recombine the segments using dplyr or plyr?

temp<-rbind(c(1,2,3,4,5,6),c(7,8,9,0,0,0))
matrix(temp,ncol=3,byrow=F) #Fails

Goal

1 2 3
4 5 6
7 8 9
0 0 0
Rilcon42
  • 8,822
  • 14
  • 65
  • 146

0 Answers0