I am not sure if you want something like below
DT[,result := asplit(DT,1)]
such that
> DT
col1 col2 col3 result
1: 1 a x 1,a,x
2: 1 b y 1,b,y
3: 1 c z 1,c,z
1
solved Combine data table row elements into a new column as a vector [closed]