Learn R Programming

amt (version 0.0.7)

coercion: Coerce a track to other formats.

Description

Several other packages provides methods to analyse movement data, and amt provides coercion methods to some packages

Usage

as_sp(x, ...)

# S3 method for steps_xy as_sp(x, end = TRUE, ...)

as_move(x, ...)

# S3 method for track_xy as_move(x, ...)

# S3 method for track_xyt as_move(x, ...)

as_ltraj(x, ...)

# S3 method for track_xy as_ltraj(x, id = "animal_1", ...)

# S3 method for track_xyt as_ltraj(x, ...)

as_bcpa(x, ...)

# S3 method for track_xyt as_bcpa(x, ...)

as_telemetry(x, ...)

# S3 method for track_xyt as_telemetry(x, ...)

as_moveHMM(x, ...)

# S3 method for track_xy as_moveHMM(x, ...)

Arguments

x

[track_xy, track_xyt] A track created with make_track.

...

Further arguments, none implemented.

end

[logical(1)=TRUE] For steps, should the end or start points be used?

id

[numeric,character,factor] Animal id(s).

Examples

Run this code
# NOT RUN {
data(deer)
as_move(deer)
as_move(deer, id = "foo")
data(deer)
as_ltraj(deer)
as_ltraj(deer, id = "animal_3")
data(deer)
d <- as_bcpa(deer)
data(deer)
as_telemetry(deer)
# Fit HMM with two states
data(deer)
dm <- as_moveHMM(deer)
# }

Run the code above in your browser using DataLab