Skip to contents

The exact values tidycreel matches on for the three columns whose meaning is a fixed vocabulary rather than a number: trip_status, catch_type and length_type. Every downstream filter compares against these literals, so a source that codes one of these columns has to be translated before its values can be trusted — see the value_maps argument of creel_schema().

Exported because tidycreel.connect translates source codes at the fetch and has to check its targets against the same list this package filters on; a second copy of the vocabulary would be free to drift from this one.

Usage

creel_vocabulary(column = NULL)

Arguments

column

Optional canonical column name. When NULL (default) the whole named list is returned; otherwise the character vector for that column.

Value

A named list of character vectors, or one character vector when column is given.

Examples

creel_vocabulary()
#> $trip_status
#> [1] "complete"   "incomplete"
#> 
#> $catch_type
#> [1] "caught"    "harvested" "released" 
#> 
#> $length_type
#> [1] "harvest" "release"
#> 
creel_vocabulary("trip_status")
#> [1] "complete"   "incomplete"