get_detyear_cdec: Get cdec data for a given detection year

Description Usage Arguments Details Value

View source: R/get_detyear_cdec.R

Description

Will pull data for the detection window of a given Detection year; that is, will pull CDEC data for the time that tagged fish are detected in the array.

Usage

1
get_detyear_cdec(detyear, detsdf, timecol, cdecstn, sensor, durtype)

Arguments

detyear

Detection year for which you want data

detsdf

Detections dataframe

timecol

Name of the date-time column for detections, in quotes

cdecstn

Three-letter acronym of the CDEC station, i.e. "LIS"

sensor

Sensor number for the CDEC station

durtype

Type of duration, i.e. "E" for event, "H" for hourly, "D" for daily. See \?cdeq_query for more info.

Details

NOTE: This function assumes you want date/time column returned from CDEC in **Pacific Standard Time**

Note that this function calls get_det_year() and get_det_window internally, so you don't need to call these first.

Value

a dataframe returned by cdeq_query() for the specified detection year


fishsciences/ybt documentation built on March 11, 2021, 8:45 a.m.