list_fields(fields = NULL, server = NULL, implemented_only = TRUE)
Arguments
fields
field (column name) to search for
server
base URL to the FishBase API (by default). For SeaLifeBase, use https://fishbase.ropensci.org/sealifebase
implemented_only
by default, only return those tables that have been implemented.
Value
a data frame listing the table names (matching function names in rfishbase) and the matching column names those tables have implemented.
Details
Calling `list_fields()` with no arguments will return the full table of all known fields.
Then users can employ standard filter techniques like grep for partial name matching;
see examples.
# NOT RUN {list_fields("Temp")
## Regex matching on full tablelibrary(dplyr)
list_fields() %>% filter(grepl("length", columns, ignore.case = TRUE))
# }