xmin | R Documentation |
Get or set single values of an extent. Values can be set for a SpatExtent or SpatRaster, but not for a SpatVector)
## S4 method for signature 'SpatExtent'
xmin(x)
## S4 method for signature 'SpatExtent'
xmax(x)
## S4 method for signature 'SpatExtent'
ymin(x)
## S4 method for signature 'SpatExtent'
ymax(x)
## S4 method for signature 'SpatRaster'
xmin(x)
## S4 method for signature 'SpatRaster'
xmax(x)
## S4 method for signature 'SpatRaster'
ymin(x)
## S4 method for signature 'SpatRaster'
ymax(x)
## S4 method for signature 'SpatVector'
xmin(x)
## S4 method for signature 'SpatVector'
xmax(x)
## S4 method for signature 'SpatVector'
ymin(x)
## S4 method for signature 'SpatVector'
ymax(x)
## S4 replacement method for signature 'SpatRaster,numeric'
xmin(x)<-value
## S4 replacement method for signature 'SpatRaster,numeric'
xmax(x)<-value
## S4 replacement method for signature 'SpatRaster,numeric'
ymin(x)<-value
## S4 replacement method for signature 'SpatRaster,numeric'
ymax(x)<-value
x |
SpatRaster, SpatExtent, or SpatVector |
value |
numeric |
SpatExtent or numeric coordinate
r <- rast()
ext(r)
ext(c(0, 20, 0, 20))
xmin(r)
xmin(r) <- 0
xmin(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.