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

Lara Silva |@r@@@|p@@||v@ @end|ng |rom gm@||@com
Thu Feb 21 13:56:34 CET 2019


Thank you!
Sorry for my silly doubt.

Peter van Horssen <peter.vanhorssen using wxs.nl> escreveu no dia quinta,
21/02/2019 à(s) 11:39:

> 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
> >
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list