Skip to contents

Find ICES codes within a code type by text match

Usage

ices_find_codes(query, code_type, max_results = 50)

Arguments

query

Search string matched against key, description, and longDescription.

code_type

ICES code type key (e.g., "Gear").

max_results

Maximum number of rows to return (default 50).

Value

Filtered tibble of codes for the given code type. Empty when nothing matches, and also when the request to ICES fails, which warns, naming the request.

Examples

if (FALSE) { # \dontrun{
# Needs the live ICES service; run in checks once an offline fixture exists.
matching_gear_codes <- ices_find_codes("trawl", code_type = "Gear")
} # }