Learn R Programming

traitstrap (version 0.1.0)

trait_missing: Which taxa lack traits

Description

Function gives overview of which taxa are missing traits.

Usage

trait_missing(filled_trait, comm)

Value

A tibble with columns #'

  • Taxon Species names (actual name depends on taxon_col argument to trait_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.

Arguments

filled_trait

output of trait_fill function.

comm

community data

Examples

Run this code
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)

Run the code above in your browser using DataLab