prep_data {ecospace} | R Documentation |
Internal Ecospace Functions.
Description
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
|
Smax |
Maximum number of species (or other taxa) to include in simulation. |
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.
Value
Returns an empty data frame with pre-defined number of species and functional traits of proper class type.
See Also
create_ecospace
for how to create an ecospace
framework (functional trait space).
[Package ecospace version 1.4.2 Index]