xy_sample: Sample locations in a study area of rectangular shape

Description Usage Arguments Value

View source: R/sampling_design.R

Description

Sample locations in a study area of rectangular shape

Usage

1
xy_sample(sp_poly, n, M = 1, method = "random", ...)

Arguments

sp_poly

An object of class SpatialPolygons from the sp package.

n

Sample size, i.e. number of sample locations.

M

Number of independent samples of size n.

method

character string; 'random' for completely random placement of points; 'regular' for systematic sampling (equal distance between points in x and y direction )

...

optional argument, passed to the appropriate function for systematic sampling: optional use of cell_size to specify the area of a grid cell instead of the number of points n; use random_rot = TRUE to rotate the sampling grid in a random direction.

Value

A data.table object with M times n rows holding an identifier and xy-coordinates.


AWF-GAUG/fisim documentation built on May 28, 2019, 11:02 a.m.