Learn R Programming

amt (version 0.2.2.0)

coercion: Coerce a track to other formats.

Description

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

Usage

as_sf(x, ...)

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

as_sp(x, ...)

as_ltraj(x, ...)

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

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

as_telemetry(x, ...)

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

as_moveHMM(x, ...)

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

Value

An object of the class to which coercion is performed to.

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).