[R] concatenating range of columns in dataframe

Evan Cooch evan.cooch at gmail.com
Fri Mar 10 19:21:29 CET 2017



On 3/10/2017 1:48 AM, Jim Lemon wrote:
> Hi Evan,
> How about this:
>
> df2<-data.frame(Trt=df[,1],Conc=apply(df[,2:5],1,paste,sep="",collapse=""))
>
> Jim
>
>


Thanks!



More information about the R-help mailing list