lgr2SCRAPI: lgr2SCRAPI: Format smolt data from LGTrappingDB for SCOBI

Description Usage Arguments Author(s) Examples

View source: R/lgr2SCRAPI.r

Description

lgr2SCRAPI() is a function to convert raw data exported or 'dumped' out of the LGTrappingDB to a format that is ready to be analyzed by the SCRAPI() function. It is to be used on one species/migratory year combination (e.g., MY2015 steelhead) at a time. It will write a csv file ready to be used as the smoltData argument of the SCRAPI() function.

Usage

1
lgr2SCRAPI(input = NULL, species = "chnk", exportFile = NULL)

Arguments

input

the name of the csv file containing smolt data exported from the LGTrappingDB. Can also accept an object of a similar format. See exRawSthdSmoltData

species

what is the species of the data you are attempting to format for SCRAPI. The default option is "chnk" for Chinook salmon. Simply set as "sthd" for steelhead.

exportFile

What would you like to name your exported file containing your data formatted for SCOBI analysis? By default lgr2SCRAPI() exports the formatted data as a csv file which is the preferred format for SCRAPI.

Author(s)

Mike Ackerman

Examples

1
lgr2SCRAPI(input = exRawSthdSmoltData, species = "sthd", exportFile = "SthdScrapiInput")

mackerman44/SCOBI documentation built on July 20, 2019, 2:48 p.m.