| makeCohortDataFiles | R Documentation |
cohortData table, while modifying the temporary
pixelCohortData that will be used to prepare other files.Takes a pixelCohortData table (see makeAndCleanInitialCohortData),
the speciesEcoregion list and returns a modified pixelCohortData and
the cohortData tables to be used in the simulation.
This function mainly removes unnecessary columns from pixelCohortData,
subsets pixels with biomass > 0, generates pixelGroups,
and adds ecoregionGroup and totalBiomass columns to pixelCohortData.
cohortData is then created by subsetting unique combinations of pixelGroup and
whatever columns are listed in columnsForPixelGroups.
The resulting cohortData table has the following columns:
speciesCode (factor)
ecoregionGroup (factor)
pixelGroup (integer)
age (integer)
B (integer)
makeCohortDataFiles(
pixelCohortData,
columnsForPixelGroups,
speciesEcoregion,
pixelGroupBiomassClass,
pixelGroupAgeClass,
minAgeForGrouping = 0,
rmImputedPix = FALSE,
imputedPixID,
pixelFateDT
)
pixelCohortData |
The full |
columnsForPixelGroups |
Default columns that define pixel groups |
speciesEcoregion |
A |
pixelGroupBiomassClass |
Integer. When assigning |
pixelGroupAgeClass |
Integer. When assigning |
minAgeForGrouping |
Minimum age for regrouping. This may be because there is a source of ages for young stands/trees that is very reliable, such as a fire database. Ages below this will not be grouped together. Defaults to -1, meaning treat all ages equally. If this is related to known ages from a high quality database, then use age of the oldest trees in that database. |
rmImputedPix |
Should imputed pixels be removed |
imputedPixID |
a vector of IDs of pixels that suffered data imputation. |
pixelFateDT |
A |
A list with a modified pixelCohortData, cohortData, and pixelFateDT
data.tables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.