我有幾個名稱相似的列表,如「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