Skip to contents

Non-native species richness outcome by bay segment and year

Usage

anlz_fw_nonnative_richness(obs)

Arguments

obs

output of anlz_fw_nonnative_obs

Value

A data.frame with columns yr, bay_segment (abbreviated), value (0-100 percentile of area-normalized richness), and outcome (0-1, 1 = best)

Details

Counts unique scientificName values per bay segment/year, normalizes by segment area (plus an AOI-wide "All" total normalized by total AOI area, from util_fw_nonnative_areas), converts to a percentile with util_percentile, then reshapes to long format and reverses to a 0-1 outcome with util_fw_nonnative_long (higher richness is worse).

Examples

if (FALSE) { # \dontrun{
obs <- anlz_fw_nonnative_obs()
anlz_fw_nonnative_richness(obs)
} # }