Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

transform_coords

Transform CRS


Description

Transforms the CRS for a track.

Usage

transform_coords(x, ...)

## S3 method for class 'track_xy'
transform_coords(x, crs_to, crs_from, ...)

transform_crs(x, ...)

Arguments

x

[track_xy, track_xyt]
A track created with make_track.

...

Further arguments, none implemented.

crs_to

[sp::CRS(1)]
Coordinate reference system the data should be transformed to, see sp::CRS.

crs_from

[sp::CRS(1)]
Coordinate reference system the data are currently in, see sp::CRS. If crs_from is missing, the crs-attribute of the track is used.

See Also

sp::spTransform

Examples

data(deer)
get_crs(deer)

# project to geographical coordinates (note the CRS is taken automatically from the object deer).
d1 <- transform_coords(deer, sp::CRS("+init=epsg:4326"))

amt

Animal Movement Tools

v0.1.4
GPL-3
Authors
Johannes Signer [aut, cre], Brian Smith [ctb], Bjoern Reineking [ctb], Ulrike Schlaegel [ctb], John Fieberg [ctb], Scott LaPoint [dtc]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.