我有如下数据帧列表:
$E9.xls
time response
1 1320.0 0.00688744
2 1320.2 0.00833458
3 1320.4 0.01035314
4 1320.6 0.01240330
5 1320.8 0.01468168
6 1321.0 0.01729148
$F12.xls
time response
1 1320.0 0.02251423
2 1320.2 0.02667812
3 1320.4 0.03204212
4 1320.6 0.03841950
5 1320.8 0.04572450
6 1321.0 0.05349166
$H1.xls
time response
1 1320.0 0.02286131
2 1320.2 0.03130347
3 1320.4 0.04070016
4 1320.6 0.05163691
5 1320.8 0.06331903
6 1321.0 0.07704557
我想将其转换为平面表,如下所示:
E9.time E9.response F12.time F12.response H1.time H1.response
1 1320.0 0.00688744 ... ... ... ...
2 1320.2 0.00833458
3 1320.4 0.01035314
4 1320.6 0.01240330
5 1320.8 0.01468168
6 1321.0 0.01729148
简而言之,我想逐列堆叠它们(它们具有相同的行数)。有什么建议吗?谢谢你。
bind_cols(dflist) %>%
`colnames<-`(paste0(rep(names(dflist), each=2),".",colnames(dflist[[1]])))
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句