rfishbase (version 3.1.5)

list_fields: list_fields

Description

list fields

Usage

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.

Examples

Run this code
# NOT RUN {
list_fields("Temp")

## Regex matching on full table
library(dplyr)
list_fields() %>% filter(grepl("length", columns, ignore.case = TRUE))
# }

Run the code above in your browser using DataCamp Workspace