[R-sig-Geo] [R-sig-eco] Use rbind for more than two data frame
Lara Silva
|@r@@@|p@@||v@ @end|ng |rom gm@||@com
Thu Feb 21 13:34:30 CET 2019
Thanks for the advice!
Mollie Brooks <mollieebrooks using gmail.com> escreveu no dia quinta, 21/02/2019
à(s) 11:31:
> Try changing "bio15_FP" to "bio15" so that the names match.
>
>
> On 21Feb 2019, at 13:29, Lara Silva <lara.sfp.silva using gmail.com> wrote:
>
> 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-ecology mailing list
> R-sig-ecology using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>
>
>
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list