rtSetGridFromVeg: setting a grid of anything from a vegetation grid

Description Usage Arguments Value Examples

Description

rtSetGridFromVeg creates a grid of anything. From a vegetation grid and a lookup table. if the passed matrix contains a code not present in the table it returns NA.

Usage

1
2
3
rtSetGridFromVeg(mVegetation = array(c("D", "T", "O", "S", "N", "N"), dim =
  c(2, 3)), dfLookup = data.frame(from = c("D", "T", "O", "S", "B", "G", "N"),
  to = c(200, 150, 110, 100, 110, 210, 999), stringsAsFactors = FALSE))

Arguments

mVegetation

a matrix of vegetation types

dfLookup

a lookup table specifying a value for each vegetation type

Value

a grid of converted values

Examples

1
mTest <- rtSetGridFromVeg()

AndySouth/rtsetse documentation built on May 5, 2019, 6:02 a.m.