LeadingVegTypeByAgeClass: Calculate proportion of landscape occupied by each vegetation...

Description Usage Arguments Value

View source: R/leading.R

Description

This function is recursive. If poly is a SpatialPolygon, then the function will enter once, and convert this to a fasterized version, and pass that into the function replacing poly. It is also recursive of passed a vector of filenames for tsf and vtm.

Usage

1
2
3
4
5
6
7
8
9
LeadingVegTypeByAgeClass(
  tsf,
  vtm,
  poly,
  ageClassCutOffs,
  ageClasses,
  sppEquivCol,
  sppEquiv
)

Arguments

tsf

A single filename, relative or absolute, pointing to a Time Since Fire raster. Can be any format that raster can use.

vtm

A single filename, relative or absolute, pointing to a Vegetation Type Map raster. Can be any format that raster can use.

poly

A single SpatialPolygonsDataFrame object or a factor RasterLayer. This layer MUST have a column labelled shinyLabel

ageClassCutOffs

A numeric vector with the endpoints for the ageClasses. Should be length(ageClasses) + 1. See .ageClassCutOffs.

ageClasses

A character vector with labels for age classes to bin the tsf times, e.g., c("Young", "Immature", "Mature", "Old"). See .ageClasses.

sppEquivCol

TODO: description needed

sppEquiv

TODO: description needed

Value

A data.table with proportion of the pixels in each vegetation class, for each given age class within each polygon.


PredictiveEcology/LandWebUtils documentation built on Sept. 12, 2020, 11:14 p.m.