我有几个名称相似的列表,如“dist124”,“dist131”等。我在一个数据框中绑定这些列表/数组时遇到了问题。我的代码是这样的: id <- c(124,131,137,198)
# create the dataframe with nrow as an initial size only for test
# and ncols as the max length of my lis
如果某些列名不存在,我该如何忽略数据集? 我从流天气数据的列表,但我认为某些关键的天气条件不存在,因此我有以下rbind此错误: Error in rbind(deparse.level, ...) :
numbers of columns of arguments do not match
我的代码: weatherDf <- data.frame()
for(i in wea