Create a GRaster
from a raster existing in the current GRASS session.
Arguments
- src
Character (name of the raster in **GRASS) or a
rastInfo
object.- names
Character: Name of the raster.
- levels
NULL
(default), adata.frame
,data.table
, an empty string (""
), or a list ofdata.frame
s,data.table
s, and/or empty strings: These become the raster'slevels()
. If""
, then no levels are defined.- ac
Vector of numeric/integer values >=1, or
NULL
(default): Active category column (offset by 1, so 1 really means the second column, 2 means the third, etc.). A value ofNULL
uses an automated procedure to figure it out.- fail
Logical: If
TRUE
(default), and the raster either has a 0 east-west or north-south extent, then exit the function with an error. Iffail
isFALSE
, then display a warning and returnNULL
.