codify_age_method: Code ageing methods to standardized character strings

View source: R/codify_age_method.R

codify_age_methodR Documentation

Code ageing methods to standardized character strings

Description

Code ageing error methods to a set of standard character strings because some agencies use different codes for the same method. For example, break and burn can be "B", "BB", or 1.

Usage

codify_age_method(x)

Arguments

x

A vector that can be a mix of integers and characters.

Details

Washington Department of Fish and Wildlife

  • B-break and burn;

  • E-enhanced break and burn;

  • L-length;

  • M-more than one age method was used, e.g., "B" and "S";

  • N-not aged;

  • O-optical scanner;

  • X-sectioning

Oregon Department of Fish and Wildlife

  • 1-break and burn;

  • 2-surface;

  • 3-scales;

  • 4-thin section;

  • 5-optical scanner;

  • 6-length;

  • 9-unable;

  • 10-break and bake;

California Department of Fish and Wildlife

  • B-break and burn;

  • S-surface;

  • T-thin section

Value

A vector of characters.

Author(s)

Kelli F. Johnson

Examples

codify_age_method(c("B", "1", "AA", NA))

nwfsc-assess/PacFIN.Utilities documentation built on March 19, 2024, 11:54 p.m.