Description Usage Arguments Details Value
Returns a tibble of Fish Passage Center (FPC) data contained in a single file with only the requested year of data.
1 | get_fpc_data(year, passage_reporting_site_abbreviation, data_directory)
|
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. |
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
tibble with 18 columns of data:
Dam
Date
ChinookAdult
ChinookJack
Chinook = ChinookAdult + ChinookJack
CohoAdult
CohoJack
Coho = CohoAdult + CohoJack
Steelhead, total includes UnclippedSteelhead
UnclippedSteelhead
Sockeye
Pink
Chum
Lamprey
Shad
Year : integer
DayOfYear : integer in [1, 366]
WeekOfYear : integer in [1, 52]
The last three fields are derived from the 'Date' field. They do not appear in the original data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.