Learn R Programming

terra (version 1.8-5)

as.character: 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 SpatExtent
as.character(x)

# S4 method for SpatRaster as.character(x)

Value

character

Arguments

x

SpatRaster

Examples

Run this code
r <- rast()
ext(r)
ext(c(0, 20, 0, 20))

Run the code above in your browser using DataLab