auk_duration: Filter the EBD by duration

Description Usage Arguments Value Examples

Description

Define a filter for the eBird Basic Dataset (EBD) based on the duration of the checklist. This function only defines the filter and, once all filters have been defined, auk_filter() should be used to call AWK and perform the filtering.

Usage

1
auk_duration(x, duration)

Arguments

x

auk_ebd object; reference to EBD file created by auk_ebd().

duration

integer; 2 element vector specifying the range of durations in minutes to filter by.

Value

An auk_ebd object.

Examples

1
2
3
4
# only keep checklists that are less than an hour long
system.file("extdata/ebd-sample.txt", package = "auk") %>%
  auk_ebd() %>%
  auk_duration(duration = c(0, 60))

mstrimas/auk documentation built on May 20, 2019, 5:26 p.m.