[R-sig-Geo] Use rbind for more than two data frame

Peter van Horssen peter@v@nhor@@en @end|ng |rom wx@@n|
Thu Feb 21 13:37:48 CET 2019


Yes,

alter columname   "bio15_FP" to "bio15" in  table 'sdmdata_F'

:-)

greetings  Peter


Op 21-2-2019 om 13:29 schreef Lara Silva:
> Hello,
>
> I am trying to join different data frames using rbind but I have the
> following mensage:
>
> sdmata_global <-
> rbind(sdmdata_SM,sdmdata_P,sdmdata_T,sdmdata_F,sdmdata_SJ)
>
> Error in match.names(clabs, names(xi)) :
> names do not match previous names
>
>> class(sdmdata_SM)
> [1] "data.frame"
>> class(sdmdata_P)
> [1] "data.frame"
>> class(sdmdata_T)
> [1] "data.frame"
>> class(sdmdata_F)
> [1] "data.frame"
>> class(sdmdata_SJ)
> [1] "data.frame"
>> dim(sdmdata_SM)
> [1] 10003    22
>> dim(sdmdata_P)
> [1] 10005    22
>> dim(sdmdata_T)
> [1] 10004    22
>> dim(sdmdata_F)
> [1] 10001    22
>> dim(sdmdata_SJ)
> [1] 10001    22
>
>
>> dim(sdmdata_SM)
> [1] 10003    22
>> dim(sdmdata_SM)
> [1] 10003    22
>> dim(sdmdata_P)
> [1] 10005    22
>> dim(sdmdata_T)
> [1] 10004    22
>> dim(sdmdata_F)
> [1] 10001    22
>> dim(sdmdata_SJ)
> [1] 10001    22
>> names(sdmdata_SM)
>   [1] "pb"    "bio1"  "bio10" "bio11" "bio12" "bio13" "bio14" "bio15" "bio16"
> [10] "bio17" "bio18" "bio19" "bio2"  "bio3"  "bio4"  "bio4a" "bio5"  "bio6"
> [19] "bio7"  "bio8"  "bio9"  "code"
>> names(sdmdata_P)
>   [1] "pb"    "bio1"  "bio10" "bio11" "bio12" "bio13" "bio14" "bio15" "bio16"
> [10] "bio17" "bio18" "bio19" "bio2"  "bio3"  "bio4"  "bio4a" "bio5"  "bio6"
> [19] "bio7"  "bio8"  "bio9"  "code"
>> names(sdmdata_T)
>   [1] "pb"    "bio1"  "bio10" "bio11" "bio12" "bio13" "bio14" "bio15" "bio16"
> [10] "bio17" "bio18" "bio19" "bio2"  "bio3"  "bio4"  "bio4a" "bio5"  "bio6"
> [19] "bio7"  "bio8"  "bio9"  "code"
>> names(sdmdata_F)
>   [1] "pb"       "bio1"     "bio10"    "bio11"    "bio12"    "bio13"
>   [7] "bio14"    "bio15_FP" "bio16"    "bio17"    "bio18"    "bio19"
> [13] "bio2"     "bio3"     "bio4"     "bio4a"    "bio5"     "bio6"
> [19] "bio7"     "bio8"     "bio9"     "code"
>> names(sdmdata_SJ)
>   [1] "pb"    "bio1"  "bio10" "bio11" "bio12" "bio13" "bio14" "bio15" "bio16"
> [10] "bio17" "bio18" "bio19" "bio2"  "bio3"  "bio4"  "bio4a" "bio5"  "bio6"
> [19] "bio7"  "bio8"  "bio9"  "code"
> Any suggestion?
>
> Thanks!
>
> Lara
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list