addPixels2CohortData: Generate 'cohortData' table per pixel:

Description Usage Arguments Value

Description

Generate cohortData table per pixel:

Usage

1
2
3
4
5
6
addPixels2CohortData(
  cohortData,
  pixelGroupMap,
  cohortDefinitionCols = c("pixelGroup", "age", "speciesCode"),
  doAssertion = getOption("LandR.assertions", TRUE)
)

Arguments

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.

cohortDefinitionCols

the columns in cohortData that define unique cohorts

doAssertion

A logical indicating whether some internal tests should be run to ensure the function is running correctly. Default: getOption("LandR.assertions", TRUE).

Value

An expanded cohortData data.table with a new pixelIndex column.


PredictiveEcology/LandR documentation built on Jan. 24, 2021, 12:52 a.m.