sgo_coordinates {sgo} | R Documentation |
Extracts coordinates from an sgo_points
object
Description
Extract the coordinates of an sgo_points
object expressed as a matrix.
Usage
sgo_coordinates(x, names.xyz = NULL, as.latlon = FALSE,
ll.format=NULL)
Arguments
x |
An instance of |
names.xyz |
Character vector. New names for the columns x, y and
possibly z of the object |
as.latlon |
Logical variable. When |
ll.format |
Character variable. Applies a format to the returned
coordinates when |
Value
A matrix with 2 or 3 named columns.
Examples
p <- sgo_points(list(57.47777, -4.22472), epsg=4326)
coords <- sgo_coordinates(p)
[Package sgo version 0.9.2 Index]