Learn R Programming

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

SDraw (version 2.1.3)

Spatially Balanced Sample Draws for Spatial Objects

Description

Routines for drawing samples, focusing on spatially balanced algorithms. Draws Halton Lattice (HAL), Balanced Acceptance Samples (BAS), Generalized Random Tesselation Stratified (GRTS), 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

7

Version

2.1.3

License

GNU General Public License

Issues

Pull Requests

Stars

Forks

Maintainer

Trent McDonald

Last Published

June 11th, 2016

Functions in SDraw (2.1.3)

bas.line

Draws a Balanced Acceptance Sample (BAS) from a linear resource (line).
extended.gcd

Extended Greatest Common Denominator (GCD) algorithm.
hal.polygon

Draws a Halton Lattice sample from an area (polygon) resource.
grts.polygon

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

Draws a Balanced Acceptance Sample (BAS) from an area resource (polygons).
grts.line

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

Draws a Halton Lattice sample from a discrete (point) resource.
hal.line

Draws a Halton Lattice sample from a linear (line) resource .
bas.point

Draws a Balanced Acceptance Sample (BAS) from a discrete resource (points).
grts.point

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

Line length
halton.lattice.polygon

Halton lattice inside a SpatialPolygon* object.
halton.indices

Halton indices
halton.lattice

Halton lattice inside a rectangle
HI.coast

SpatialLinesDataFrame of the coastline of Hawaii, USA
halton.frame

Construct a Halton sampling frame.
halton

Compute points in the Halton sequence.
maxU

Maximum integer used in the BAS routines
halton.indices.CRT

Halton indices by the Chinese Remainder Theorem (CRT)
halton.indices.vector

Halton indices for an entire vector of coordinates
sdraw

Sample draws from spatial objects.
polygonArea

Polygon area
SDraw-package

Selection of spatially balanced samples.
sss.line

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

Prime numbers
srs.line

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

Plot sample and frame
sss.point

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

Draws a Simple Random Sample (SRS) from an area resource (polygons).
srs.point

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

SpatialPointsDataFrame of cities in Washington state, USA
WY

SpatialPolygonsDataFrame of counties in the state of Wyoming, USA
voronoi.polygons

Calculate Voronoi polygons for a set of points
sss.polygon

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

SpatialPolygonsDataFrame for the state of Washington, USA