Add species to a ForestGEO-like dataframe of census data.

add_species(data, species, site)

Arguments

data

A ForestGEO-like census-dataframe.

species

A ForestGEO-like species-dataframe.

site

The name of the site. One of allodb::sites_info$site.

Value

A dataframe with as many rows as the census dataset.

See also

Other constructors: add_equations

Examples

library(dplyr) census <- fgeo.biomass::scbi_tree1 species <- fgeo.biomass::scbi_species census %>% add_species(species, site = "scbi")
#> # A tibble: 40,283 x 23 #> rowid treeID stemID tag StemTag sp quadrat gx gy DBHID CensusID #> <int> <int> <int> <chr> <chr> <chr> <chr> <dbl> <dbl> <int> <int> #> 1 1 1 1 10079 1 libe 0104 3.70 73 1 1 #> 2 2 2 2 10168 1 libe 0103 17.3 58.9 3 1 #> 3 3 3 3 10567 1 libe 0110 9 197. 5 1 #> 4 4 4 4 12165 1 nysy 0122 14.2 428. 7 1 #> 5 5 5 5 12190 1 havi 0122 9.40 436. 9 1 #> 6 6 6 6 12192 1 havi 0122 1.30 434 13 1 #> 7 7 7 7 12212 1 unk 0123 17.8 447. 15 1 #> 8 8 8 8 12261 1 libe 0125 18 484. 17 1 #> 9 9 9 9 12456 1 vipr 0130 18 598. 19 1 #> 10 10 10 10 12551 1 astr 0132 5.60 628. 22 1 #> # … with 40,273 more rows, and 12 more variables: dbh <dbl>, pom <chr>, #> # hom <dbl>, ExactDate <chr>, DFstatus <chr>, codes <chr>, nostems <dbl>, #> # date <dbl>, status <chr>, agb <dbl>, species <chr>, site <chr>