scs | R Documentation |
Returns a set of randomly-selected snow crab survey sampling stations. Each station is drawn from a square grid, a lattice which overlays the survey area. Longitude and latitude coordinates of the survey polygon's vertices are converted to UTM coordinates (NAD83). A square grid lattice is overlaid over the survey area. The dimensions of the grid vary according to number of required sampling stations and the area of the survey polygon.
scs(n, longitude, latitude, hole = NULL, alternates = 0, grids = FALSE)
nss(n, alternates = 0, stations, type)
n |
Integer specifying the desired number of sampling stations. |
longitude , latitude |
Numeric vector specifying, in decimal degrees, the longitude coordinate of each vertex of the survey polygon, which specifies the survey area. Multiple, disjoint polygons may be separated by NA values. If not specified, then the snow crab survey polygon is used. |
hole |
Logical vector. When multiple polygons are specified in
|
alternates |
Integer specifying the number of additional, alternate sampling stations per grid to be generated. The default value is zero. |
grids |
Logical value specifying whether the grid coordinates are to be
included in the output for the snow crab survey. Alternatively, the output from a
previous call of |
stations |
Data frame specifying the set of survey stations to be sampled. |
type |
Character string specifying the 'type' label to be assigned in the resulting sample. |
If grids
is FALSE
, a data frame is returned with
sampling station coordinates (longitude
and latitude
), the
station type (whether the station is a primary or alternate station) and a
grid label which identifies from which grid the sample was drawn.
If grids
is TRUE
, then a two-element list is returned. The
first element contains the station table described above, while the second
element contains a list defining the coordinates of each grid vertex as well
as the grid label.
scs()
: Snow crab survey station design.
nss()
: Northumberland Strait survey station design.
# Snow crab survey:
x <- scs(355) # Generate 355 survey stations.
x <- scs(355, alternates = 2) # Include 2 alternate station in the output.
x <- scs(355, alternates = 2, grids = TRUE) # Include grids in the export.
# Northumberland Strait survey:
x <- nss(100) # Generate 100 survey stations.
x <- nss(80, alternates = 2) # Generate 80 x survey stations plus 2 alternates sets
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.