How to use cbind() when columns stored in a character vector?

前端 未结 0 723
情深已故
情深已故 2020-12-30 03:47

Let\'s say I have the below data.table:

DT <- data.table(x=rep(c(1,2),3),y=rep(1,6),z=rep(2,6))

DT
   x y z
1: 1 1 2
2: 2 1 2
3: 1 1 2
4: 2 1 2
5: 1 1 2
6         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题