wrap_abundances_around_eligible_set: Wrap abundances around eligible set

wrap_abundances_around_eligible_setR Documentation

Wrap abundances around eligible set

Description

Take a given distribution (e.g., from a Xu problem) and add more species (and probably more planning units too) to the problem so that the new problem has a specified distribution, but retains the original problem's solution.

Usage

wrap_abundances_around_eligible_set(
  dep_set,
  eligible_set,
  rounded_abund_per_spp,
  num_base_spp,
  Xu_PU_spp_table,
  allow_imperfect_wrap,
  min_allowed_abundance = 2,
  PU_col_name = "PU_ID",
  spp_col_name = "spp_ID",
  use_testing_only_rand_seed = FALSE,
  testing_only_rand_seed = 17
)

Arguments

dep_set

integer vector

eligible_set

integer vector

rounded_abund_per_spp

integer vector

num_base_spp

integer

Xu_PU_spp_table

data frame

allow_imperfect_wrap

boolean

min_allowed_abundance

integer

PU_col_name

character string

spp_col_name

character string

use_testing_only_rand_seed

boolean

testing_only_rand_seed

integer

Value

Returns PU_spp_table data frame


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