
Compute Number of Known Trait(s) per Species
Source:R/fb_count_traits_by_species.R
fb_count_traits_by_species.RdFor each species computes the percentage of traits without NA (missing
trait values).
Value
A three-column data.frame with:
species: the name of the species;n_traits: the number of traits with non-missing value for the species;coverage: the percentage of traits with non-missing value for the species.
Examples
trait_coverage_by_species <- fb_count_traits_by_species(woodiv_traits)
head(trait_coverage_by_species)
#> species n_traits coverage
#> 1 AALB 4 1
#> 2 APIN 4 1
#> 3 CSEM 4 1
#> 4 JCOM 4 1
#> 5 JOXY 4 1
#> 6 JPHO 4 1