README.md

CRAN/METACRAN CRAN Total Downloads CRAN Downloads HitCount Build Status codecov

An R package to draw samples

SDraw draws five types of equal-probability samples from spatial objects, focusing on spatially balanced algorithms that are especially suited for environmental monitoring. SDraw implements the following:

The first four sample types (HIP, BAS, GRTS, and SSS) provide spatially balanced samples. SRS does not. Frame types can be points, lines, or polygons implemented as SpatialPoints*, SpatialLines*, or SpatialPolygons* objects.

See package help (help("SDraw")) and help for function sdraw (help("sdraw")) to get started. A list of available functions can be obtained with help(package="SDraw"). [For the newby: all of R is case sensitive. SDraw is different than sdraw.]

License: GNU General Public License

Dependencies

The author has found it best to install dependencies before attempting to install SDraw. To install dependencies, execute the following: * install.packages( c("spsurvey", "rgeos", "sp", "deldir"), repos="http://cran.r-project.org")

rgeos requires java. Java should be installed a priori. On Unix systems, the libraries needed for rgeos are cryptically named. Google 'install rgeos unix'.

Installation

From CRAN

The current stable release of SDraw can be installed like any other package: * install.packages( c("SDraw"), repos="http://cran.r-project.org")

Using devtools

The current development version of SDraw can be installed from GitHub. Assuming devtools is installed and loaded, the following should work:

From source

After installation

Issue library(SDraw) at the command prompt.



tmcd82070/SDraw documentation built on Aug. 23, 2020, 1:51 a.m.