Takes a single data.table
input, which has the following columns in addition to
others that will be labelled with species name, and contain percent cover of each:
A data.table
with columns described above.
A vector of the names of the columns in inputDataTable
that
represent percent cover by species, rescaled to sum up to 100%%.
statistical model used to impute ages in pixels with missing data or with cover == 0. If set to NULL no imputation will be attempted, and pixels with missing age are excluded.
minimum total cover percentage necessary to consider the pixel vegetated, or a cohort present in a pixel.
A logical indicating whether some internal tests should be run to
ensure the function is running correctly.
Default: getOption("LandR.assertions", TRUE)
.
Turns on/off subsetting. Defaults to TRUE
.
a cohortData
data.table
with attribute "imputedPixID"
(a vector of pixel IDs that suffered imputation).
pixelIndex
(integer)
age
(integer)
logAge
(numeric)
initialEcoregionCode
(factor)
totalBiomass
(integer)
lcc
(integer)
rasterToMatch
(integer)
speciesCode
(factor)
cover
(integer)
coverOrig
(integer)
B
(integer)
Several data correction/imputation operations are also performed. Namely, age is imputed
in pixels where age data is missing (but not cover) and where cover == 0
but age > 0
,
total biomass is zeroed if age == 0
, and age is zeroed if biomass == 0
.