
Count Number of Sites Occupied by Species
Source:R/fb_count_sites_by_species.R
fb_count_sites_by_species.Rd
For each species computes the percentage of sites where the species is present (distribution value higher than 0 and non-NA).
Value
A three-column data.frame
with:
species
: the name of the species;n_sites
: the number of sites where the species is present;coverage
: the percentage of sites where the species is present.
Examples
site_coverage_by_species <- fb_count_sites_by_species(woodiv_site_species)
head(site_coverage_by_species)
#> species n_sites coverage
#> 1 PPIR 2264 0.4219158
#> 2 PHAL 2203 0.4105479
#> 3 JPHO 1781 0.3319046
#> 4 JOXY 1576 0.2937011
#> 5 PPIA 1481 0.2759970
#> 6 PSYL 1297 0.2417070