assign.spp.v3: Assign species to the landscape (v3)

Description Usage Arguments Value Note

Description

Assign species to the landscape, meeting certain response trait diveristy constraints.

Usage

1
2
assign.spp.v3(p, loc.rtd, land.rtd, land.sp.num, patch.sp.num, unq.rtds,
  SpTraits)

Arguments

p

The number of cells in a square landscape

loc.rtd

The response trait diversity in each patch

land.rtd

The response trait diversity in the landscape

land.sp.num

The number of species in the landscape

patch.sp.num

The number of species in each patch

unq.rtds

unq.rtds

SpTraits

Species trait information from species file

Value

Returns a list of species locations in the landscape

Note

This is not an optimal implementation, and could benefit from some optimization. This is especially a problem when there is only one or a few valid configurations of species. This is because species are chosen and removed randomly, so it takes a long time (if ever) to find the valid configuration(s).


akeyel/spatialdemography documentation built on May 12, 2019, 4:43 a.m.