prep_data: Internal Ecospace Functions.

Description Usage Arguments Details Value See Also

View source: R/prep_data.R

Description

Internal functions not intended to be called directly by users.

Usage

1

Arguments

ecospace

An ecospace framework (functional trait space) of class ecospace.

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).


pnovack-gottshall/ecospace documentation built on June 14, 2020, 1:04 p.m.