compute_rep_fraction: Compute species representation fractions achieved

compute_rep_fractionR Documentation

Compute species representation fractions achieved

Description

Compute fractions of species representation targets (shortfall or overrep) achieved by a given set of planning units given a spp rows by PU columns adjacency matrix.

Usage

compute_rep_fraction(
  spp_rows_by_PU_cols_matrix_of_spp_cts_per_PU,
  PU_set_to_test,
  spp_rep_targets = 1
)

Arguments

spp_rows_by_PU_cols_matrix_of_spp_cts_per_PU

integer matrix of abundance of each species in each planning unit, with a row for each species ID and a column for each planning unit ID

PU_set_to_test

integer vector of planning unit IDs where each ID specifies a planning unit to include in the set to be tested

spp_rep_targets

numeric vector with a target abundance for each species in the problem

Value

Returns spp_rep_fracs numeric vector of fractions of species representation targets achieved by a given set of planning units


langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.