powered by
Transforms the CRS for a track.
transform_coords(x, ...)# S3 method for track_xy transform_coords(x, crs_to, crs_from, ...)transform_crs(x, ...)
# S3 method for track_xy transform_coords(x, crs_to, crs_from, ...)
transform_crs(x, ...)
A track with transformed coordinates.
[track_xy, track_xyt] A track created with make_track.
[track_xy, track_xyt]
make_track
Further arguments, none implemented.
[crs(1)] Coordinate reference system the data should be transformed to, see sf::st_crs.
[crs(1)]
sf::st_crs
[crs(1)] Coordinate reference system the data are currently in, see sf::sf_crs. If crs_from is missing, the crs-attribute of the track is used.
sf::sf_crs
crs_from
crs
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)
Run the code above in your browser using DataLab