View source: R/combine_measurements.R
| combine_measurements | R Documentation |
Combine data and reference measurements into one table, to build the measurement table from both. Missing abundances in reference measurements are set to 1.
combine_measurements(dats, measurements)
dats |
Dataframe to be used for estimation. |
measurements |
Dataframe of reference measurements, or NULL. |
dats combined with reference measurements, or dats if
measurements is NULL.
dats <-
data.frame(species = c("sp_a", "sp_b"),
stage = "larva",
abundance = c(2, 5),
size_col = "unknown",
biomass_col = NA,
biomass_type = "dry")
measurements <-
data.frame(species = "sp_a",
stage = "larva",
size_col = c(3.1, 2.8),
biomass_col = c(0.4, 0.3),
biomass_type = "dry")
combine_measurements(dats, measurements)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.