R语言|将数据框内列的内容横向添加到行|cast()

test3 <- reshape::cast(dat[,c(1:6)],col1+col2+col3+col4~col5,mean)

 

posted @ 2021-11-16 15:13  西西与维奥拉  阅读(150)  评论(0)    收藏  举报