Skip to contents

This function uses activity data to classify migratory flapping flight. It returns the same data list pam adding a column ismig to the data.frame acceleration. This function is inspired by the function classify_flap from the PAMLr package.

Usage

pam_classify(pam, min_duration = 30)

Arguments

pam

logger dataset list. See pam_read().

min_duration

duration in minutes

Value

pam

Examples

pam <- pam_read(
  pathname = system.file("extdata/0_PAM/18LX", package = "GeoPressureR")
)
pam <- pam_classify(pam, min_duration = 15)
head(pam$acceleration)
#>                  date obs ismig
#> 1 2017-07-27 00:00:00   0 FALSE
#> 2 2017-07-27 00:05:00   0 FALSE
#> 3 2017-07-27 00:10:00   0 FALSE
#> 4 2017-07-27 00:15:00   0 FALSE
#> 5 2017-07-27 00:20:00   0 FALSE
#> 6 2017-07-27 00:25:00   0 FALSE