loadkNNSpeciesLayersValidation: Load kNN species layers from online data repository

Description Usage Arguments Value

Description

Downloads the 2011 kNN species cover layers from the Canadian Forestry Service, National Inventory System, for validation.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
loadkNNSpeciesLayersValidation(
  dPath,
  rasterToMatch,
  studyArea,
  sppEquiv,
  knnNamesCol = "KNN",
  sppEquivCol,
  thresh = 1,
  url,
  ...
)

Arguments

dPath

path to the data directory

rasterToMatch

A RasterLayer objects to use as the template for all subsequent raster operations (i.e., the one used throughout the simulation).

studyArea

A SpatialPolygons* object used as the principle study region, passed to prepInputs.

sppEquiv

table with species name equivalencies between the kNN and final naming formats. See data("sppEquivalencies_CA", "LandR"). Only necessary if mixedType == 2. If not provided and mixedType == 2, will attempt to use data("sppEquivalencies_CA", "LandR").

knnNamesCol

character string indicating the column in sppEquiv containing kNN species names. Default "KNN" for when sppEquivalencies_CA is used.

sppEquivCol

the column name to use from sppEquiv. Only necessary if mixedType == 2. If not provided and mixedType == 2, will attempt to use "Boreal".

thresh

the minimum number of pixels where the species must have biomass > 0 to be considered present in the study area. Defaults to 1.

url

the source url for the data, passed to prepInputs

...

Additional arguments passed to Cache and equivalentName.

Value

A raster stack of percent cover layers by species.


PredictiveEcology/LandR documentation built on Jan. 24, 2021, 12:52 a.m.