Learn R Programming

SDraw (version 2.1.13)

Spatially Balanced Samples of Spatial Objects

Description

Routines for drawing samples from spatial objects, focused on spatially balanced algorithms. Draws Halton Iterative Partition (HIP) (Robertson et al., 2018; ), Balanced Acceptance Samples (BAS) (Robertson et al., 2013; ), Generalized Random Tessellation Stratified (GRTS) (Stevens and Olsen, 2004; ), Simple Systematic Samples (SSS) and Simple Random Samples (SRS) from point, line, and polygon resources. Frames are 'SpatialPoints', 'SpatialLines', or 'SpatialPolygons' objects from package 'sp'.

Copy Link

Version

Install

install.packages('SDraw')

Monthly Downloads

18

Version

2.1.13

License

GNU General Public License

Issues

Pull Requests

Stars

Forks

Maintainer

Trent McDonald

Last Published

July 3rd, 2020

Functions in SDraw (2.1.13)

SDraw-package

Selection of spatially balanced samples.
HI.coast

SpatialLinesDataFrame of the coastline of Hawaii, USA
WA.cities

SpatialPointsDataFrame of cities in Washington state, USA
getJ

getJ
WA

SpatialPolygonsDataFrame for the state of Washington, USA
WY

SpatialPolygonsDataFrame of counties in the state of Wyoming, USA
extended.gcd

Extended Greatest Common Denominator (GCD) algorithm.
bas.line

Draws a Balanced Acceptance Sample (BAS) from a linear resource (line).
bas.polygon

Draws a Balanced Acceptance Sample (BAS) from an area resource (polygons).
bas.point

Draws a Balanced Acceptance Sample (BAS) from a discrete resource (points).
halton.coefficients

halton.coefficients
polygonArea

Polygon area
plotSample

Plot sample and frame
halton.indices.CRT

Halton indices by the Chinese Remainder Theorem (CRT)
hip.lattice.polygon

Halton Iterative Partition lattice inside a bbox (bounding box) matrix object.
halton.indices

Halton indices
halton.lattice

Halton lattice inside a rectangle
halton.indices.vector

Halton indices for an entire vector of coordinates
halton.lattice.polygon

Halton lattice inside a SpatialPolygon* object.
hip.plot.lattice

Plot a Halton Lattice over a polygon resource
halton.frame

Construct a Halton sampling frame.
hip.point

hip.point - Halton Iterative Partition (HIP) of point resources.
grts.polygon

Draw a equi-probable GRTS sample from an area (polygon) resource.
halton

Compute points in the Halton sequence.
voronoi.polygons

Calculate Voronoi polygons for a set of points
grts.line

Draw a equi-probable GRTS sample from a linear (line) resource.
sss.polygon

Draws a Simple Systematic Sample (SSS) from an area resource (polygons).
maxU

Maximum integer used in the BAS routines
sss.point

Draw a Simple Systematic Sample (SSS) from a point resource or finite population frame.
plotLattice

plotLattice
primes

Prime numbers
sdraw.SpatialLines

Sample draws from spatial objects.
lineLength

Line length
srs.line

Draw a Simple Random Sample (SRS) from a linear resource.
srs.point

Draw a Simple Random Sample (SRS) from a point resource or finite population frame.
hip.polygon

Draws a Halton Iterative Partition (HIP) sample from a continuous 2-dimensional (polygon) resource.
grts.point

Draw a equi-probable GRTS sample from a discrete (point) resource.
srs.polygon

Draws a Simple Random Sample (SRS) from an area resource (polygons).
sss.line

Draw a Simple Systematic Sample (SSS) from a linear resource.