Internal functions not intended to be called directly by users.
prep_data(ecospace, Smax)
An ecospace framework (functional trait space) of class
ecospace
.
Maximum number of species (or other taxa) to include in simulation.
Returns an empty data frame with pre-defined number of species and functional traits of proper class type.
Pre-allocate the basic data frame structure so classes (and factor
levels, if used) are properly set. Bit clunky but efficient solution:
adding first placeholder column allows cbind
to work properly with
data frame later, but requires deleting that placeholder at end.
create_ecospace
for how to create an ecospace
framework (functional trait space).