get_date_bins: Given a set of flight groupings, determine the start and end...

Description Usage Arguments Value Examples

View source: R/getDateBins.R

Description

Given a set of flight groupings, determine the start and end dates of cooresponding detection periods

Usage

1
get_date_bins(raw_data, flight_group)

Arguments

raw_data

The output of read_flight_data, channels_merge, or replace_date.

flight_group

A vector specifying the flight grouping. The ordering of flight_group needs to coorespond to the ordering of raw_data.

Value

Returns a matrix with two columns. The first column specifies the start dates of the detection periods whereas the second column specifies the end dates of the detection periods. The output will be used as the date_bins argument in the function get_best_locations.

Examples

1
2
3
4
names(raw_data)
flight_group <- flight_group <- c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,5,5,5,5,6,6,7,7,7,7,8,8)
date_bins <- get_date_bins(raw_data, flight_group)
date_bins

jBernardADFG/telprep documentation built on July 26, 2020, 2:17 a.m.