clean_cte501: Clean RecFIN data

View source: R/clean_.R

clean_cte501R Documentation

Clean RecFIN data

Description

Clean RecFIN data to provide data in a similar format with consistent column names and values. For example, states are standardized to be state abbreviations rather than single letters or full names and are available in the column called state.

Usage

clean_cte501(data)

clean_mrfss(data)

Arguments

data

A data frame.

Value

A data frame with standardized columns.

Missing years

MRFSS data is incomplete and will not contain information for the years 1990 to 1992. Most often, linear interpolation is performed to estimate catches during these years because it can be assumed that they were not zero if the surrounding years were also non-zero.

todo: create a function to estimate catches for 1990-1922

AGENCY_CODE

  • 6: California

  • 41: Oregon

  • 53: Washington

RECFIN_SUB_REGION_NAME

  • Washington: Canada-US border to Washington-Oregon border

  • Oregon: Washington-Oregon border to Oregon-California border

  • Northern California: North of Point Conception and south of Oregon-California border

  • Southern California: South of Point Conception

Author(s)

Kelli Faye Johnson

See Also

See the data object recfin_coldefs for more complete descriptions of column names and their contents.


nwfsc-assess/RecFIN documentation built on Nov. 22, 2022, 11:27 a.m.