getBenthicData: Download benthic data from server

View source: R/api.R

getBenthicDataR Documentation

Download benthic data from server

Description

Download benthic data from server to a data.frame

Usage

getBenthicData(
  years,
  regions,
  server = "https://grunt.sefsc.noaa.gov/rvc_analysis20/"
)

Arguments

years

A numeric vector of years for which to get sample data

regions

A character vector of region codes for which to get sample data (e.g. "FLA KEYS", "DRY TORT", "SEFCRI")

server

A string containing the domain url at which to access the server

Value

A data.frame with taxonomic data and life history data for all species in the RVC with columns:

REGION

A code indicating the region. DRY TORT: Dry Tortugas, FLA KEYS: Florida Keys, and SEFCRI: Southeast Peninsular Florida

YEAR

A number indicating the calendar year

PRIMARY_SAMPLE_UNIT

A code indicating the primary sample unit in which a sample was collected

STATION_NR

A number indicating the secondary sampling unit within a given primary sample unit

DEPTH

Average depth, in meters, of secondary sampling unit

MAX_HARD_RELIEF

The maximum height, in meters, of hard relief (e.g. hard corals, rock)

MAX_SOFT_RELIEF

The maximum height, in meters, of soft relief (e.g. soft corals, sponges)

AVG_HARD_RELIEF

The average height, in meters, of hard relief

HARD_REL_PCT_0

Percentage of hard relief less than 0.2 meters

HARD_REL_PCT_1

Percentage of hard relief between 0.2 and 0.5 meters

HARD_REL_PCT_2

Percentage of hard relief between 0.5 and 1.0 meters

HARD_REL_PCT_3

Percentage of hard relief between 1.0 and 1.5 meters

HARD_REL_PCT_4

Percentage of hard relief greater than 1.5 meters

PCT_SAND

Percentage of abiotic cover that is sand

PCT_HARD_BOTTOM

Percentage of abiotic cover that is hard bottom

PCT_RUBBLE

Percentage of abiotic cover that is rubble

PCT_CORAL

Percentage of biotic hardbottom that is coral

PCT_OCTO

Percentage of biotic hardbottom that is octocoral

PCT_SPONGE

Percentage of biotic hardbottom that is sponge


harryganz/rvc documentation built on Feb. 14, 2023, 4:13 p.m.