trait_missing: Which taxa lack traits

View source: R/trait_missing.R

trait_missingR 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 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.

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)

richardjtelford/traitstrap documentation built on July 3, 2024, 1:46 a.m.