Skip to contents

Merges two CompadreDB objects via a row-bind of the data slots.

Usage

cdb_rbind(cdb1, cdb2)

Arguments

cdb1, cdb2

CompadreDB objects

Value

A CompadreDB object created by binding the rows of cdb1 and cdb2

Author

Sam Levin <levisc8@gmail.com>

Owen R. Jones <jones@biology.sdu.dk>

Examples

Compadre1 <- subset(Compadre, Continent == "Asia")
Compadre2 <- subset(Compadre, Continent == "Africa")

cdb_rbind(Compadre1, Compadre2)
#> A COM(P)ADRE database ('CompadreDB') object with 9 SPECIES and 12 MATRICES.
#> 
#> # A tibble: 12 × 49
#>    mat        SpeciesAuthor  SpeciesAccepted CommonName Genus Family Order Class
#>    <list>     <chr>          <chr>           <chr>      <chr> <fct>  <fct> <fct>
#>  1 <CompdrMt> Phyllanthus_i… Phyllanthus in… Amla       Phyl… Phyll… Malp… Magn…
#>  2 <CompdrMt> Phyllanthus_i… Phyllanthus in… Amla       Phyl… Phyll… Malp… Magn…
#>  3 <CompdrMt> Sambucus_race… Sambucus siebo… NA         Samb… Adoxa… Dips… Magn…
#>  4 <CompdrMt> Phyllanthus_e… Phyllanthus em… Amla       Phyl… Phyll… Malp… Magn…
#>  5 <CompdrMt> Magnolia_sali… Magnolia salic… NA         Magn… Magno… Magn… Magn…
#>  6 <CompdrMt> Hordeum_spont… Hordeum sponta… Wild barl… Hord… Poace… Poal… Lili…
#>  7 <CompdrMt> Phyllanthus_i… Phyllanthus in… Amla       Phyl… Phyll… Malp… Magn…
#>  8 <CompdrMt> Hordeum_spont… Hordeum sponta… Wild barl… Hord… Poace… Poal… Lili…
#>  9 <CompdrMt> Acer_amoenum   Acer palmatum   NA         Acer  Sapin… Sapi… Magn…
#> 10 <CompdrMt> Setaria_incra… Setaria incras… NA         Seta… Poace… Poal… Lili…
#> 11 <CompdrMt> Borassus_aeth… Borassus aethi… NA         Bora… Areca… Arec… Lili…
#> 12 <CompdrMt> Themeda_trian… Themeda triand… NA         Them… Poace… Poal… Lili…
#> # ℹ 41 more variables: Phylum <fct>, Kingdom <fct>, OrganismType <fct>,
#> #   DicotMonoc <fct>, AngioGymno <fct>, Authors <chr>, Journal <chr>,
#> #   YearPublication <chr>, DOI_ISBN <chr>, AdditionalSource <chr>,
#> #   StudyDuration <dbl>, StudyStart <dbl>, StudyEnd <dbl>,
#> #   ProjectionInterval <chr>, NumberPopulations <dbl>,
#> #   MatrixCriteriaSize <fct>, MatrixCriteriaOntogeny <fct>,
#> #   MatrixCriteriaAge <fct>, MatrixPopulation <chr>, Lat <dbl>, Lon <dbl>, …