Coder Social home page Coder Social logo

sdraw's Introduction

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.

sdraw's People

Contributors

sdifferent0987 avatar rtupling avatar semmons1 avatar aidanmcdonald avatar jasmyace avatar gtd80526 avatar mandykauffman avatar jcarlis3 avatar davidluizrusso avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.