as.character: Create a text representation of (the skeleton of) an object

as.characterR Documentation

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

Description

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

Usage

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

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

Arguments

x

SpatRaster or SpatExtent

Value

character

Examples

r <- rast()
r
as.character(r)

e <- ext(r)
e
as.character(e)

terra documentation built on Aug. 22, 2026, 5:07 p.m.