Learn R Programming

⚠️There's a newer version (2.1.13) of this package.Take me there.

SDraw (version 2.1.8)

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

24

Version

2.1.8

License

GNU General Public License

Issues

Pull Requests

Stars

Forks

Maintainer

Trent McDonald

Last Published

March 7th, 2019

Functions in SDraw (2.1.8)

srs.point

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

Draw a Simple Random Sample (SRS) from a linear resource.
halton.indices.CRT

Halton indices by the Chinese Remainder Theorem (CRT)
bas.line

Draws a Balanced Acceptance Sample (BAS) from a linear resource (line).
halton.indices

Halton indices
grts.line

Draw a equi-probable GRTS sample from a linear (line) resource.
grts.point

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

Maximum integer used in the BAS routines
plotLattice

plotLattice
primes

Prime numbers
sdraw.SpatialLines

Sample draws from spatial objects.
srs.polygon

Draws a Simple Random Sample (SRS) from an area resource (polygons).
HI.coast

SpatialLinesDataFrame of the coastline of Hawaii, USA
SDraw-package

Selection of spatially balanced samples.
grts.polygon

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

Compute points in the Halton sequence.
hip.plot.lattice

Plot a Halton Lattice over a polygon resource
sss.line

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

hip.point - Halton Iterative Partition (HIP) of point resources.
voronoi.polygons

Calculate Voronoi polygons for a set of points
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.indices.vector

Halton indices for an entire vector of coordinates
halton.lattice

Halton lattice inside a rectangle
hip.polygon

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

SpatialPolygonsDataFrame for the state of Washington, USA
sss.polygon

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

Line length
WA.cities

SpatialPointsDataFrame of cities in Washington state, USA
sss.point

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

halton.coefficients
halton.frame

Construct a Halton sampling frame.
plotSample

Plot sample and frame
polygonArea

Polygon area
WY

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

Extended Greatest Common Denominator (GCD) algorithm.
getJ

getJ
halton.lattice.polygon

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

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