R/get_fish_fields.R

Defines functions get_fish_fields

Documented in get_fish_fields

#' Get A List of Fish Related Fields from ERDAPP
#'
#' This function searches the California Fish Tracking ERDAPP Database to create
#' a list of all potential fields related to fish metrics. Used to identify
#' important fish data fields to add to detection data in the add_fish function.
#'
#' @returns A vector of potential fish fields which the user may review to
#' retrieve specific field indices
#' @export
#' @examples
#' fish_fields <- get_fish_fields
get_fish_fields <- function(){
  info <- rerddap::info('FED_JSATS_taggedfish',
                        url = 'https://oceanview.pfeg.noaa.gov/erddap')
  info$variables
}

Try the filteRjsats package in your browser

Any scripts or data that you put into this service are public.

filteRjsats documentation built on April 10, 2023, 5:07 p.m.