Assign light probability

assignLightProb(sufficientLight, newCohortData, interpolate = TRUE)

Arguments

sufficientLight

a data.table containing probability of establishment, given a site's light conditions (X0-X5) for each level of a species' shade tolerance (1-5).

newCohortData

a modified version of cohortData that contains new cohorts.

interpolate

Logical. Activates interpolation of probabilities of establishment between any two values of shade tolerance in the sufficient light table, allowing species shade tolerance trait values to take any decimal value between 1 and 5 (inclusively). If false, species shade tolerances can only take integer values between 1 and 5 (inclusively).

Value

newCohortData with a lightProb column