GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tmcd82070/SDraw: An R package for drawing spatially balanced samples

BranchesTags
Open more actions menu

Latest commit

 

History

438 Commits
438 Commits

Folders and files

NameName
Last commit message
Last commit date
R
R
 
 
data
data
 
 
man
man
 
 
tests
tests
 
 
vignettes
vignettes
 
 
.Rbuildignore
.Rbuildignore
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
DESCRIPTION
DESCRIPTION
 
 
NAMESPACE
NAMESPACE
 
 
NEWS.md
NEWS.md
 
 
README.md
README.md
 
 
SDraw.Rproj
SDraw.Rproj
 
 
codecov.yml
codecov.yml
 
 
cran-comments.md
cran-comments.md
 
 

Repository files navigation

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:

  • Halton Iterative Partitions (HIP)
  • Balanced Acceptance Samples (BAS)
  • Generalized Random Tesselation Stratified (GRTS)
  • Simple Systematic Samples (SSS)
  • Simple Random Samples (SRS)

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:

  • install_github("tmcd82070/SDraw")

From source

  • Download the source tarball (the tar.gz) from the current release
  • In R, execute the following: install.packages( pkgs=file.choose(), type="source"" )
  • A choose-file dialog will appear. Navigate to the tar.gz file and click "Open"

After installation

Issue library(SDraw) at the command prompt.

About

An R package for drawing spatially balanced samples

Resources

Readme
Activity

Stars

11 stars

Watchers

14 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.