factorValues2 | R Documentation |
raster::factorValues()
Note there is an option to remove the NAs, which will make it MUCH faster,
if TRUE
factorValues2(x, v, layer, att, append.names, na.rm = FALSE)
x |
Raster* object |
v |
integer cell values |
layer |
integer > 0 indicating which layer to use (in a RasterStack or RasterBrick) |
att |
numeric or character. Which variable(s) in the RAT table should be used. If |
append.names |
logical. Should names of data.frame returned by a combination of the name of the layer and the RAT variables? (can be useful for multilayer objects |
na.rm |
Logical. If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.