TODO: add detailed description

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 (?)