conversions {trackdf} | R Documentation |
Convert a Track Table to/from Other Formats
Description
The following methods will convert track tables to and from other common formats used for processing tracking and spatial data.
Usage
as_track(x, table = "df", ...)
## S3 method for class 'MoveStack'
as_track(x, table = "df", ...)
## S3 method for class 'Move'
as_track(x, table = "df", ...)
as_move(x, ...)
## S3 method for class 'SpatialPointsDataFrame'
as_track(x, table = "df", ...)
as_sp(x, ...)
## S3 method for class 'track'
as_sp(x, ...)
## S3 method for class 'ltraj'
as_track(x, table = "df", ...)
as_ltraj(x, ...)
## S3 method for class 'track'
as_ltraj(x, ...)
## S3 method for class 'telemetry'
as_track(x, table = "df", ...)
## S3 method for class 'list'
as_track(x, table = "df", ...)
as_telemetry(x, ...)
## S3 method for class 'track'
as_telemetry(x, ...)
## S3 method for class 'moveData'
as_track(x, table = "df", type = c("LL", "UTM"), ...)
as_moveHMM(x, ...)
## S3 method for class 'track'
as_moveHMM(x, ...)
Arguments
x |
An object to convert. |
table |
A string indicating the class of the table on which the track
table should be built. It can be a |
... |
Other parameters to be passed to:
|
type |
For converting |
Value
The coordinates converted in the chosen format.
Author(s)
Simon Garnier, garnier@njit.edu
See Also
Examples
## Not run:
data(short_tracks)
if (requireNamespace("sp", quietly = TRUE)) {
sp <- as_sp(short_tracks)
as_track(sp)
}
if (requireNamespace("adehabitatLT", quietly = TRUE)) {
lt <- as_ltraj(short_tracks)
as_track(lt)
}
if (requireNamespace("ctmm", quietly = TRUE)) {
tl <- as_telemetry(short_tracks)
as_track(tl)
}
if (requireNamespace("moveHMM", quietly = TRUE)) {
hhm <- as_moveHMM(short_tracks, type = "LL")
as_track(hhm)
}
## End(Not run)