as.character function

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

methods

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

## S4 method for signature 'SpatExtent' as.character(x) ## S4 method for signature 'SpatRaster' as.character(x)

Arguments

  • x: SpatRaster

Returns

character

Examples

r <- rast() ext(r) ext(c(0, 20, 0, 20))
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2025-02-26