projection_units: Get projection units of an sf object

View source: R/projection-units.r

projection_unitsR Documentation

Get projection units of an sf object

Description

Get projection units of an sf object

Usage

projection_units(x)

Arguments

x

an sf object

Value

A units object with the units of the projection.

Examples

pts <- sf::st_sfc(sf::st_point(c(0, 0)), sf::st_point(c(1, 1)))
pts_df <- sf::st_sf(a = 1:2, geom = pts)
pts_df <- sf::st_set_crs(pts_df, "+proj=laea")
projection_units(pts_df)

mstrimas/metacapa documentation built on Feb. 22, 2025, 3:23 a.m.