assert1 | R Documentation |
assert1
: Assert that ecoregionCodes
that were replaced, were correctly identified;
This is the full pixelCohortData
, not the collapsed one.
assert1(
cohortData34to36,
cohortData,
rmZeroBiomassQuote,
classesToReplace = 34:36,
doAssertion = getOption("LandR.assertions", TRUE)
)
assert2(
cohortDataNo34to36,
classesToReplace = 34:36,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertSppMaxBMaxANPP(
speciesEcoregion,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertUniqueCohortData(
cohortData,
columns,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertERGs(
ecoregionMap,
cohortData,
speciesEcoregion,
minRelativeB,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertColumns(
obj,
colClasses,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertCohortData(
cohortData,
pixelGroupMap,
maxExpectedNumDiverge = 1,
message = "",
doAssertion = getOption("LandR.assertions", TRUE),
verbose = getOption("LandR.verbose", TRUE),
cohortDefinitionCols = c("pixelGroup", "age", "speciesCode")
)
assertPixelCohortData(
pixelCohortData,
pixelGroupMap,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertSpeciesPlotLabels(
speciesNames,
sppEquiv,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertFireToleranceDif(
burnedPixelCohortData,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertSpeciesLayers(
speciesLayers,
thresh,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertRstLCChange(
rstLCChange,
rasterToMatch,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertSpeciesEcoregionCohortDataMatch(
cohortData,
speciesEcoregion,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertPixelCohortDataValid(
standCohortData,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertRepsAllCohortData(
allCohortData,
reps,
years,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertStandAgeMapAttr(
standAgeMap,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertCohortDataAttr(
cohortData,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertSppVectors(
sppEquiv = NULL,
sppNameVector = NULL,
sppColorVect = NULL,
sppEquivCol = NULL,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertSpeciesTableRaw(
speciesTableRaw,
doAssertion = getOption("LandR.assertions", TRUE)
)
assertSpeciesTable(
speciesTable,
doAssertion = getOption("LandR.assertions", TRUE)
)
cohortData34to36 |
A |
cohortData |
A |
rmZeroBiomassQuote |
An expression to evaluate, in the form of |
classesToReplace |
Integer vector of classes that are are to be replaced, e.g., 34, 35, 36 on LCC2005, which are burned young, burned 10 year, and cities. |
doAssertion |
A logical indicating whether some internal tests should be run to
ensure the function is running correctly.
Default: |
cohortDataNo34to36 |
A |
speciesEcoregion |
A |
columns |
Vector of column names on which to test for unique |
ecoregionMap |
The |
minRelativeB |
a |
obj |
A |
colClasses |
A named vector of column classes, where the names are the column names |
pixelGroupMap |
A |
maxExpectedNumDiverge |
A numeric, length 1, indicating by how many they can diverge. Default 1. |
message |
An optional message to print. This may help identify where this function was called. |
verbose |
Controls message output. Defaults to |
cohortDefinitionCols |
the columns in |
pixelCohortData |
The full |
speciesNames |
A vector of species names for which the labels will be checked |
sppEquiv |
an table with a column containing species names |
burnedPixelCohortData |
An expanded |
speciesLayers |
A |
thresh |
the minimum number of pixels where the species must have
|
rstLCChange |
a raster layer indicating pixels were land-use change occurred as 1s |
rasterToMatch |
A |
standCohortData |
A |
allCohortData |
A |
reps |
repetition ids |
years |
years |
standAgeMap |
A |
sppNameVector |
A character vector of species to use. These species must all
be from one naming convention, i.e., from one column in the |
sppColorVect |
A named vector of colours to use for plotting.
The names must conform with species name convention used
(see sppEquivalencies_CA for possible naming
conventions) and should also contain a colour for 'Mixed',
when a mixed forest type is supported (see |
sppEquivCol |
the column name to use from |
speciesTableRaw |
raw species traits |
speciesTable |
species traits |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.