projection_units: Get projection units of an sf object

Description Usage Arguments Value Examples

View source: R/projection-units.r

Description

Get projection units of an sf object

Usage

1

Arguments

x

an sf object

Value

A units object with the units of the projection.

Examples

1
2
3
4
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)
sf::st_crs(pts_df) = "+proj=aea"
projection_units(pts_df)

mstrimas/metacapa documentation built on Dec. 3, 2019, 3:16 p.m.