Description Usage Arguments Value
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)
1 2 3 4 5 6 7 8 9 | makeCohortDataFiles(
pixelCohortData,
columnsForPixelGroups,
speciesEcoregion,
pixelGroupBiomassClass,
pixelGroupAgeClass,
minAgeForGrouping = 0,
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. |
pixelFateDT |
A |
A list with a modified pixelCohortData
, cohortData
, and pixelFateDT
data.table
s.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.