Skip to contents

Create a text representation of (the skeleton of) an object

Usage

# S4 method for SpatExtent
as.character(x)

# S4 method for SpatRaster
as.character(x)

Arguments

x

SpatRaster

Value

character

Examples

r <- rast()
ext(r)
#> SpatExtent : -180, 180, -90, 90 (xmin, xmax, ymin, ymax)
ext(c(0, 20, 0, 20))
#> SpatExtent : 0, 20, 0, 20 (xmin, xmax, ymin, ymax)