Internal functions not intended to be called directly by users.
Usage
prep_data(ecospace, Smax)
Arguments
ecospace
An ecospace framework (functional trait space) of class
ecospace.
Smax
Maximum number of species (or other taxa) to include in
simulation.
Value
Returns an emptry data frame with pre-defined number of species and
functional traits of proper class type.
Details
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.
See Also
create_ecospace for how to create an ecospace
framework (functional trait space).