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()).

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

geo_xy(0:5, 1:6)
#> <geovctrs_xy[6]> #> [1] (0 1) (1 2) (2 3) (3 4) (4 5) (5 6)
plot(geo_xy(0:5, 1:6))
geo_xyz(0:5, 1:6, 3)
#> <geovctrs_xyz[6]> #> [1] (0 1 3) (1 2 3) (2 3 3) (3 4 3) (4 5 3) (5 6 3)