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.

codify_age_method(x)

Arguments

x

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

Value

A vector of 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

Author

Kelli F. Johnson

Examples

codify_age_method(c("B", "1", "AA", NA))
#> The following unmatched values were found n times in `codify_age_method()`:
#> 'AA' (n = 1)
#> [1] "B" "B" NA  NA