getStratumData: Download stratum data from server

View source: R/api.R

getStratumDataR Documentation

Download stratum data from server

Description

Download stratum data from server and save as data.frame

Usage

getStratumData(
  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 stratum data, including thr 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

PROT

A boolean indicating the protected status: 1 - protected, 2 - unprotected

STRAT

A code indicating the stratum. Differs by region

NTOT

The number of possible primary sample units for a given year, region, stratum, and protected status

GRID_SIZE

The length (in meters) to a side of a primary sample unit for a given year, region, stratum, and protected status

See Also

getSampleData getTaxonomicData getRvcData


jeremiaheb/rvc documentation built on Feb. 15, 2023, 12:15 a.m.