get_fpc_data: Get FPC Data from One Downloaded File.

Description Usage Arguments Details Value

View source: R/get_fpc_data.R

Description

Returns a tibble of Fish Passage Center (FPC) data contained in a single file with only the requested year of data.

Usage

1
get_fpc_data(year, passage_reporting_site_abbreviation, data_directory)

Arguments

year

integer year in which the observations were made.

passage_reporting_site_abbreviation

string abbreviation of the passage reporting site as it appears in the data. For example, 'BON' is the abbreviation for "Bonneville Dam".

data_directory

string path to the directory that contains the FPC data files.

Details

The file names are assume to have the following format: fpc-salmon-{passage_reporting_site_abbreviation}-{year}0101-{year}1231.csv For example, fpc_salmon-BON-20000101-20001231.csv

Value

tibble with 18 columns of data:

  1. Dam

  2. Date

  3. ChinookAdult

  4. ChinookJack

  5. Chinook = ChinookAdult + ChinookJack

  6. CohoAdult

  7. CohoJack

  8. Coho = CohoAdult + CohoJack

  9. Steelhead, total includes UnclippedSteelhead

  10. UnclippedSteelhead

  11. Sockeye

  12. Pink

  13. Chum

  14. Lamprey

  15. Shad

  16. Year : integer

  17. DayOfYear : integer in [1, 366]

  18. WeekOfYear : integer in [1, 52]

The last three fields are derived from the 'Date' field. They do not appear in the original data.


jimtyhurst/salmonstats documentation built on May 23, 2019, 2:47 p.m.