dot-createCohortData: Generate template 'cohortData' table

.createCohortDataR Documentation

Generate template cohortData table

Description

Internal function used by makeAndCleanInitialCohortData().

Usage

.createCohortData(
  inputDataTable,
  sppColumns,
  minCoverThreshold = 5,
  doAssertion = getOption("LandR.assertions", TRUE),
  rescale = TRUE
)

Arguments

inputDataTable

A data.table with columns described above.

sppColumns

A vector of the names of the columns in inputDataTable that represent percent cover by species, rescaled to sum up to 100%%.

minCoverThreshold

minimum total cover percentage necessary to consider the pixel vegetated, or a cohort present in a pixel.

doAssertion

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

rescale

Logical. If TRUE, the default, cover for each species will be rescaled so all cover in pixelGroup or pixel sums to 100.

Value

cohortData (data.table) with attribute "imputedPixID"


PredictiveEcology/LandR documentation built on June 7, 2024, 4:16 p.m.