| updateCohortDataPostHarvest | R Documentation |
cohortData and pixelGroupMapThis 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.
updateCohortDataPostHarvest(
newPixelCohortData,
cohortData,
pixelGroupMap,
currentTime,
speciesEcoregion,
treedHarvestPixelTable = NULL,
successionTimestep,
provenanceTable,
trackPlanting = FALSE,
initialB = 10,
cohortDefinitionCols = c("pixelGroup", "age", "speciesCode"),
verbose = getOption("LandR.verbose", TRUE),
doAssertion = getOption("LandR.assertions", TRUE)
)
newPixelCohortData |
must be a complete |
cohortData |
A |
pixelGroupMap |
A |
currentTime |
The current simulation time e.g., |
speciesEcoregion |
A |
treedHarvestPixelTable |
A data.table with at least 2 columns, |
successionTimestep |
The time between successive seed dispersal events. In LANDIS-II, this is called "Succession Timestep". |
provenanceTable |
A |
trackPlanting |
if true, planted cohorts in |
initialB |
the initial biomass of new cohorts. Defaults to ten, even if NA/NULL is passed. |
cohortDefinitionCols |
the columns in |
verbose |
Controls message output. Defaults to |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.