Format_Steelhead: Format Steelhead trout JTRAP data needed for MYTSBE models

Description Usage Arguments

Description

This function reconfigures JTRAP Steelhead trout data into the appropriate capture-mark-recapture format needed for the Multi-Year Time Stratified Bayesian Estimator (MYTSBE) models.

Steelhead trout "TU" dispositioned fish are marked individuals released upstream (nraw) of the rotary screw trap (RST) on a given date. "RE RC" dispositioned Steelhead are recaptured individuals (m) at the RST on a given date. The sum of "TU", "TD", "NTT", "NTD", and "NTR" dispositioned fish are captured unmarked individuals (u) at the RST on a given date.

Individuals smaller than the fork length cut-off (flength.cut) are excluded from the formatting. Precocial Steelhead, designated with precocial disposition, are excluded from the formatting.

Years are standardized in that each year begins at the earliest trapping date and ends at the latest trapping date the RST was ever in operation since RST installation.

PTAGIS data are needed to calculate the likelihood an individual is available for recapture during a proceeding day. Movement parameters of individauls are calculated using a MLE approach beginning with Day 1 (day after release) through Day 5, for the entirety of the data set. After day 5, it is assumed that migrating fish have traveled passed the RST or left the population. "n" is the estimated number of fish available for recapture on a given date rounded to the nearest integer.

This package exports a .csv file to the working directory titled "Trap name, species, today's date, formatted data.csv"

Usage

1
2
Format_Steelhead(JTRAP_data, PTAG_data, strata = 7, smolt.date = "06-01",
  flength.cut = 80, species, trap.name)

Arguments

JTRAP_data

JTRAP data query

PTAG_data

PTAGIS data query (needs to be specific to the species of interest)

strata

length of desired strata in days (e.g. 1 week -> 7 days)

smolt.date

"MM-DD" smolt classification date needed for formatting

flength.cut

fork length cut off for steelhead to be included in the analysis

species

character string needed to subset data (should be identical to the species name in the JTRAP_data set)

trap.name

character string used for titles and descriptions of reports


Boldemeyer/MYTSBE documentation built on May 6, 2019, 7:58 a.m.