stratum | R Documentation |
Determine the spatial survey stata corresponding to a set of coordinates.
stratum(x, ...)
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 |
survey |
Character string specifying the research survey. This argument
is passed onto the |
Returns a numerical vector the same size as latitude
and longitude
containing the survey strata numbers.
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.