View source: R/track_transform_crs.R
transform_coords | R Documentation |
Transforms the CRS for a track.
transform_coords(x, ...)
## S3 method for class 'track_xy'
transform_coords(x, crs_to, crs_from, ...)
transform_crs(x, ...)
x |
|
... |
Further arguments, none implemented. |
crs_to |
|
crs_from |
|
A track with transformed coordinates.
sf::st_transform
data(deer)
get_crs(deer)
# project to geographical coordinates (note the CRS is taken automatically from the object deer).
d1 <- transform_coords(deer, crs_to = 4326)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.