Description Usage Arguments Details Value
This is a wrapper for generatePixelGroups
, initiateNewCohort
and updates to
pixelGroupMap
via assignment to new pixelIndex
values in newPixelCohortData
.
By running these all together, there is less chance that they will diverge.
There are some checks internally for consistency.
Calculate new values for B
, add age
, then rbindlist
this
with cohortData
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | updateCohortData(
newPixelCohortData,
cohortData,
pixelGroupMap,
currentTime,
speciesEcoregion,
treedFirePixelTableSinceLastDisp = NULL,
successionTimestep,
cohortDefinitionCols = c("pixelGroup", "age", "speciesCode"),
verbose = getOption("LandR.verbose", TRUE),
doAssertion = getOption("LandR.assertions", TRUE)
)
.initiateNewCohorts(
newPixelCohortData,
cohortData,
pixelGroupMap,
currentTime,
cohortDefinitionCols = c("pixelGroup", "speciesCode", "age"),
speciesEcoregion,
successionTimestep
)
|
newPixelCohortData |
must be a complete |
cohortData |
A |
pixelGroupMap |
A |
currentTime |
The current simulation time e.g., |
speciesEcoregion |
A |
treedFirePixelTableSinceLastDisp |
A data.table with at least 2 columns, |
successionTimestep |
The time between successive seed dispersal events. In LANDIS-II, this is called "Succession Timestep". This is used here |
cohortDefinitionCols |
the columns in |
verbose |
Integer, where increasing number is increasing verbosity. Currently, only level 1 exists; but this may change. |
doAssertion |
A logical indicating whether some internal tests should be run to
ensure the function is running correctly.
Default: |
Does the following:
add new cohort data into cohortData
;
assign initial B
and age
for new cohort;
assign the new pixelGroup
to the pixels that have new cohort;
update the pixelGroup
map.
A list of length 2, cohortData
and pixelGroupMap
, with
newPixelCohortData
inserted.
A data.table
with a new rbindlist
ed cohortData
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.