trait_missing {traitstrap} | R Documentation |
Which taxa lack traits
Description
Function gives overview of which taxa are missing traits.
Usage
trait_missing(filled_trait, comm)
Arguments
filled_trait |
output of trait_fill function. |
comm |
community data |
Value
A tibble
with columns
#'
Taxon Species names (actual name depends on
taxon_col
argument totrait_fill()
)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.
Examples
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)
[Package traitstrap version 0.1.0 Index]