pull_fish_data_from_ERDDAP.Rd
Pulls tagged fish data from a specified ERDDAP table.
pull_fish_data_from_ERDDAP()
A dataframe containing tagged fish data from the ERDDAP table.
This function retrieves tagged fish data from the 'FED_JSATS_taggedfish' ERDDAP table. It fetches the data from the specified ERDDAP server URL and performs necessary data transformations, including converting date columns to POSIXct format and extracting fish ID prefixes.
# Pull fish data from ERDDAP
fish_data <- pull_fish_data_from_ERDDAP()
#> Error in mutate(tabledap("FED_JSATS_taggedfish", url = "https://oceanview.pfeg.noaa.gov/erddap/"), fish_release_date = as.POSIXct(fish_release_date, format = "%m/%d/%Y %H:%M:%S", tz = "Etc/GMT+8"), fish_date_tagged = as.POSIXct(fish_date_tagged, format = "%m/%d/%Y %H:%M:%S", tz = "Etc/GMT+8"), fish_id_prefix = substr(fish_id, start = 1, stop = (nchar(fish_id) - 4))): could not find function "mutate"