Create new cohorts based on provenance table with unique pixelGroup and add to cohortData

plantNewCohorts(
  newPixelCohortData,
  cohortData,
  pixelGroupMap,
  initialB = 10,
  currentTime,
  successionTimestep,
  trackPlanting = FALSE
)

Arguments

newPixelCohortData

the cohorts that were harvested

cohortData

A data.table with columns: pixelGroup, ecoregionGroup, speciesCode, and optionally age, B, mortality, aNPPAct, and sumB.

pixelGroupMap

A RasterLayer with pixel values equal to a pixel group number that corresponds exactly to pixelGroup column in cohortData.

initialB

the initial biomass of new cohorts. Defaults to ten.

currentTime

The current simulation time e.g., time(sim).

successionTimestep

The time between successive seed dispersal events. In LANDIS-II, this is called "Succession Timestep".

trackPlanting

adds column that tracks planted cohorts if TRUE

Value

A data.table with a new cohortData