View source: R/trait_missing.R
trait_missing | R Documentation |
Function gives overview of which taxa are missing traits.
trait_missing(filled_trait, comm)
filled_trait |
output of trait_fill function. |
comm |
community data |
A tibble
with columns
Taxon |
Species names (actual name depends on |
max_abun |
Maximum abundance of that taxa. Be more concerned about taxa missing traits with high abundances. |
n |
Number of occurrences of the taxon. Be more concerned about taxa missing traits with many occurrences. |
n_traits |
Number of traits for each species. Ideally all should equal the number of traits you have measured. |
data(community)
data(trait)
filled_traits <- trait_fill(
comm = community, traits = trait,
scale_hierarchy = c("Site", "PlotID"),
taxon_col = "Taxon", value_col = "Value",
trait_col = "Trait", abundance_col = "Cover"
)
trait_missing(filled_traits, community)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.