Description Usage Arguments Value Examples
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.
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))
|
mVegetation |
a matrix of vegetation types |
dfLookup |
a lookup table specifying a value for each vegetation type |
a grid of converted values
1 | mTest <- rtSetGridFromVeg()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.