stratum: Survey Spatial Strata

View source: R/stratum.R

stratumR Documentation

Survey Spatial Strata

Description

Determine the spatial survey stata corresponding to a set of coordinates.

Usage

stratum(x, ...)

Arguments

x

Object.

...

Further arguments (not used).

longitude, latitude

Numerical longitude and latitude value(s) in decimal degree format.

region

Character string specifying the geographic region. This argument is passed onto the stratum.info function.

survey

Character string specifying the research survey. This argument is passed onto the stratum.info function.

Value

Returns a numerical vector the same size as latitude and longitude containing the survey strata numbers.

Examples

# Get stratum information:
stratum(region = "gulf", survey = "rv")

# Find the stratum at a single point:
stratum(-63.8, 47.05) # returns 429

# Find strata values for multiple points:
lat <- c(48, 47, 46.5)
long <- c(-64, -61.5, -62)
stratum(long, lat) # returns: c(422, 434, 401)

# Read a set card:
x <- read.scsset(year = 2010)
stratum(longitude(x), latitude(x))

TobieSurette/gulf.spatial documentation built on Sept. 26, 2024, 7:41 p.m.