speciesTable: Download and prepare a species traits table for use with...

Description Usage Arguments Value Note

Description

TODO: add detailed description

Usage

1
2
3
4
5
6
7
8
getSpeciesTable(url = NULL, dPath = tempdir(), cacheTags = NULL)

prepSpeciesTable(
  speciesTable,
  speciesLayers,
  sppEquiv = NULL,
  sppEquivCol = "LandR"
)

Arguments

url

If NULL (the default), uses one from D. Cyr's LANDIS-II files: https://github.com/dcyr/LANDIS-II_IA_generalUseFiles/master/speciesTraits.csv).

dPath

The destination path.

cacheTags

User tags to pass to Cache.

speciesTable

A raw species traits table

speciesLayers

stack of species layers rasters

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").

sppEquivCol

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

Value

A data.table with columns ... TODO

Note

This one is tailored to Canadian forests (?)


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