我有几个对象的长列表,但想要将所有这些对象合并到一个对象中。 Merge_recurse做我想要的但我需要将我的列表拆分为两个列表,因为它太长了(见下文)
List_Merge1<- merge_recurse(list_shp_Deforested_2000_Africa[c(0:200)])
List_Merge2<- merge_recurse(list_shp_Deforested_2000_Africa[c(201:394)])
List_Merge<- rbind(List_Merge1, List_Merge2)
有人知道一个让我一步完成的替代方案吗?感谢
答案 0 :(得分:1)
以下是适合我的数据的答案。
List_Merge_Def<- melt(list_shp_Deforested_2000_Africa)
List_Merge_Def<- List_Merge_Def[,-c(2:7,13:16, 18:29)]
colnames(List_Merge_Def)<- c("ID", "Tile", "UNIQ_ID", "AREA", "D_90_00", "D_00_05", "Def_Bio_2000")