coercion: Coerce a track to other formats.

Description Usage Arguments Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
as_sp(x, ...)

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

as_move(x, ...)

## S3 method for class 'track_xyt'
as_move(x, id = "id", ...)

as_ltraj(x, ...)

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

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

as_bcpa(x, ...)

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

as_telemetry(x, ...)

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

as_moveHMM(x, ...)

## S3 method for class '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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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)

amt documentation built on Jan. 18, 2021, 5:05 p.m.