reduce_seasons: Query data within two sampling periods

Description Usage Arguments Value Author(s) Examples

View source: R/utility_functions.R

Description

reduce_seasons queries data for a single season or between two seasons depending on how arguments are filled.

Usage

1
reduce_seasons(uwin_data = NULL, start = NULL, end = NULL)

Arguments

uwin_data

The list object returned from collect_tables.

start

A character vector that contains the first sampling period and year that you would like to query. start must be 4 characters long with the first two characters denoting the sampling season and the last two characters denoting the year (e.g., April 2017 would be "AP17").

end

A character vector that contains the last sampling period and year that you would like to query. start must be 4 characters long with the first two characters denoting the sampling season and the last two characters denoting the year (e.g., April 2017 would be "AP17"). If only querying one season of data end should be left as NULL.

Value

Returns the list object from collect_tables with data from either a single season (if end is left NULL) or with data that lie between the sampling periods specified in start and end. Note that this only queries data in the Visits, Photos, and Detections table within the Access database.

Author(s)

Mason Fidino

Examples

1
2
3
4
5
6
7
dat <- do_qaqc(uwin_test)
dat <- reduce_seasons(dat, start = "JA16", end = "JU17")

# if only collecting data from one season.

dat <- do_qaqc(uwin_test)
dat <- reduce_seasons(dat, start = "JA16")

mfidino/uwinr documentation built on Oct. 9, 2019, 10:02 p.m.