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

remove_capture

Removes Capture Effects


Description

Removing relocations at the beginning and/or end of a track, that fall within a user specified period.

Usage

remove_capture_effect(x, ...)

## S3 method for class 'track_xyt'
remove_capture_effect(x, start, end, ...)

Arguments

x

An object of class track_xyt.

...

Further arguments, none implemented.

start

A lubirdate::Period, indicating the time period to be removed at the beginning of the track.

end

A lubirdate::Period, indicating the time period to be removed at the end of the track.

Examples

library(lubridate)
n <- 10
df <- track(
  x = cumsum(rnorm(n)),
  y = cumsum(rnorm(n)),
  t = ymd_hm("2017-01-01 00:00") +
   hours(seq(0, by = 24, length.out = n))
)

df
remove_capture_effect(df, start = days(1))
remove_capture_effect(df, end = days(2))
remove_capture_effect(df, start = days(1), end = days(2))

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.