Learn R Programming

tidyterra (version 1.0.0)

glance.Spat: Glance at an Spat* object

Description

Glance accepts a model object and returns a tibble::tibble() with exactly one row of Spat. The summaries are typically geographic information.

Usage

# S3 method for SpatRaster
glance(x, ...)

# S3 method for SpatVector glance(x, ...)

Value

glance methods always return a one-row data frame. See Methods.

Arguments

x

A SpatRaster created with terra::rast() or a SpatVector created with terra::vect().

...

Ignored by this method.

Methods

Implementation of the generic generics::glance() method for Spat*. objects.

See Also

glimpse.Spat, generics::glance().

Other generics methods: required_pkgs.Spat, tidy.Spat

Examples

Run this code

library(terra)

# SpatVector
v <- vect(system.file("extdata/cyl.gpkg", package = "tidyterra"))

glance(v)

# SpatRaster
r <- rast(system.file("extdata/cyl_elev.tif", package = "tidyterra"))

glance(r)

Run the code above in your browser using DataLab