geo_xy: Create a coordinate vector

Description Usage Arguments Value Examples

View source: R/geo-xy.R

Description

The geo_xy() type is useful as an efficient representation of points stored using column vectors. Note that geo_xy(NA, NA) is considered an "empty" point rather than a "missing" point (see geo_is_missing() and geo_is_empty()).

Usage

1
2
3
geo_xy(x = double(), y = double())

geo_xyz(x = double(), y = double(), z = double())

Arguments

x, y, z

x, y, and z coordinate vectors

Value

A new_geovctrs_xy()

Examples

1
2
3
4
geo_xy(0:5, 1:6)
plot(geo_xy(0:5, 1:6))

geo_xyz(0:5, 1:6, 3)

paleolimbot/geovctrs documentation built on July 30, 2020, 3:41 p.m.