View source: R/Taxonomic_utilities.R
Commontaxer | R Documentation |
Calculates taxa by life stage combos present in all source datasets
Commontaxer(Source_taxa_key, Taxa_level, Size_class)
Source_taxa_key |
A dataframe with columns named Source, Lifestage, SizeClass, and the value provided to the parameter |
Taxa_level |
Taxonomic level you would like to perform this calculation for. E.g., if you wish to determine all Genus x lifestage combinations present in all datasets, provide |
Size_class |
The size class(es) you would like this function to consider. You should generally only supply 1 size class. |
This function is designed to work on just one size class. To apply to multiple size classes, use map or apply functions to apply across size classes.
A tibble with a column for Taxa_level
and another for Lifestage
representing all combinations of these values present in all source datasets.
Sam Bashevkin
Zoopsynther
, crosswalk
, SourceTaxaKeyer
## Not run:
library(rlang)
library(purrr)
SourceTaxaKey <- SourceTaxaKeyer(zoopComb, crosswalk)
Size_classes <- set_names(c("Micro", "Meso", "Macro"))
Commontax <- map(Size_classes, ~ Commontaxer(SourceTaxaKey, "Taxname", .))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.