cades_JuvOutmigrant: Format juvenile out-migrant DES tables.

View source: R/cades_JuvOutmigrant.R

cades_JuvOutmigrantR Documentation

Format juvenile out-migrant DES tables.

Description

Format juvenile abundance and survival data generated from get_JuvenileEstimates for the coordinated assessments juvenile outmigrant and juvenile outmigrant detail DES tables. The function requires an odbc connection from behind the NPT firewall to download CAX metadata tables from the CDMS database. Additionally, if a dataframe is not supplied a connection to https://cdms.nptfisheries.org using cdmsR::cdmsLogin() is also required.

Usage

cades_JuvOutmigrant(df, detail_meta, smoltEq_meta, alpha = c("0.05", "0.10"))

Arguments

df

lifestage dataframe output from get_JuvenileEstimates.

detail_meta

CA DES juvenile outmigrant detail metadata

smoltEq_meta

CA DES juvenile outmigrant metadata

alpha

Type I error rate. Default is set at 0.05 to produce 95% confidence intervals.

Value

a list with coordinated assessments juvenile outmigrant and juvenile outmigrant detail DES tables

Examples

cdmsR::cdmsLogin('your_username', 'your_password')
df <- get_JUVests()
con <- RODBC::odbcConnect(dsn = 'data source', uid = 'your_username', pwd = 'your_password')
cades_JuvOutmigrant(df, odbc_connection = con)

ryankinzer/cuyem documentation built on April 20, 2024, 2:10 p.m.