Set a mask on an object See constructMask() for examples on how to construct masks.
setMask(x, ...)# S3 method for default
setMask(x, mask, coordinates = 1:2, ...)
# S3 method for data.frame
setMask(x, mask, coordinates = 1:2, ...)
# S3 method for DataFrameStack
setMask(x, mask, coordinates = attr(x, "coordinates"), ...)
# S3 method for SpatialGrid
setMask(x, mask, ...)
# S3 method for GridTopology
setMask(x, mask, ...)
# S3 method for SpatialPoints
setMask(x, mask, ...)
The object x appropriately masked (for the setter methods).
an object to mask (for set) or masked (for get)
extra arguments for generic compatibility
the mask to impose on x
for some of the methods, it is important to specify the names or indices
of the columns containing the geographic coordinates (only setMask.data.frame) or else
to specify the matrix of spatial coordinates (all setMask methods including it)
default: Set a mask on an object
data.frame: Set a mask on a data.frame object
DataFrameStack: Set a mask on a DataFrameStack object
SpatialGrid: Set a mask on a SpatialGrid object
GridTopology: Set a mask on a GridTopology object
SpatialPoints: Set a mask on a SpatialPoints object
Other masking functions:
constructMask(),
getMask(),
print.mask(),
unmask()