projection | R Documentation |
Functions to access or modify the projection of a data table. Changing the projection will trigger automatically the conversion of the locations in the new coordinate system.
projection(x)
projection(x) <- value
project(x, value)
x |
A track table. |
value |
A character string or a |
A track table.
It is not possible to modify the projection if missing coordinates are present.
Simon Garnier, garnier@njit.edu
st_crs
data(short_tracks)
projection(short_tracks)
tracks_projected <- project(short_tracks, "+proj=somerc")
projection(tracks_projected)
projection(tracks_projected) <- "+proj=longlat"
projection(tracks_projected)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.