F.chinookByDate.table: F.chinookByDate.table

F.chinookByDate.tableR Documentation

F.chinookByDate.table

Description

Summarize chinook salmon by date between two dates.

Usage

F.chinookByDate.table(site, min.date, max.date, output.file)

Arguments

site

The identification number of the site for which estimates are required.

min.date

The start date for data to include. This is a text string in the format %Y-%m-%d, or YYYY-MM-DD.

max.date

The end date for data to include. Same format as min.date.

output.file

The name of the file prefix under which output is to be saved.

Details

As its name implies, function F.chinookByDate.table retrieves only Chinook salmon records, as specified by setting variable taxon=161980 within the appropriate query series. The function utilizes helper function F.get.all.catch.data to handle the Sum Chinook by Trap query series. See section Structured Query Language (SQL) Queries in function F.run.sqlFile for more information. Note that function F.get.catch.data, utilized in the estimation of passage, differs from F.get.all.catch.data.

Value

A csv containing Chinook salmon catch information. A data frame containing the same information is also returned, but invisibly.

See Also

F.get.catch.data

Examples

## Not run: 
#   ---- Get all Chinook on the American.
# site <- 57000
# min.date <- "2013-01-01"
# max.date <- "2013-06-01"
# output.file <- NA

F.chinookByDate.table(site,min.date,max.date,output.file)

## End(Not run)

tmcd82070/CAMP_RST documentation built on April 6, 2022, 12:07 a.m.