Skip to content

spsurvey

5.6.1

Spatial Sampling Design and Analysis

3packages depend
19.4Kdownloads / year
45.5%test coverage
13/13checks pass

Overview

About
Maintained by Michael DumelleFirst published 2007-01-2433 releasesCRAN page ↗GitHub ↗

A design-based approach to statistical inference, with a focus on spatial data. Spatially balanced samples are selected using the Generalized Random Tessellation Stratified (GRTS) algorithm. The GRTS algorithm can be applied to finite resources (point geometries) and infinite resources (linear / linestring and areal / polygon geometries) and flexibly accommodates a diverse set of sampling design features, including stratification, unequal inclusion probabilities, proportional (to size) inclusion probabilities, legacy (historical) sites, a minimum distance between sites, and two options for replacement sites (reverse hierarchical order and nearest neighbor). Data are analyzed using a wide range of analysis functions that perform categorical variable analysis, continuous variable analysis, attributable risk analysis, risk difference analysis, relative risk analysis, change analysis, and trend analysis. spsurvey can also be used to summarize objects, visualize objects, select samples that are not spatially balanced, select panel samples, measure the amount of spatial balance in a sample, adjust design weights, and more. For additional details, see Dumelle et al. (2023) doi:10.18637/jss.v105.i03.

Install

Health

CRAN checks
13OK
Slowest check: 8.4 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.19
45.5%
Coverage · measured lines
100%
Documentation · exports
12
Dependencies · direct
Check history
  • OK2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 1 FAILURE
  • ERROR2026-06-07
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-03
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 506 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
59%
Documented parameters
96%
Return-value docs
97%
References docs
16%

Downloads

19.4K
CRAN downloads in the past year
Rank #3,735 · ~53/day · ~1.6K/mo
Daily download trend is not available in this view yet.
71930 days
2.8K90 days
19.4K1 year
Compare downloads with other packages →
Also on182 r2u34 autocran93 c2d4u

Repository

Repository
22Stars
9Forks
0Open issues
0Open PRs
15Releases
850Commits
7Contributors
ordresearch
License GPL-3.0 · 850 commits · Last activity 2026-05-15 · +4.8% stars, 30d

Stars over time

2025-07-05 · 162026-07-07 · 22

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/usepa/spsurvey on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (3)
R >= 3.5.0sfsurvey
Imports (10)
bootcrossdesdeldirgraphicsgrDeviceslme4MASSsamplingstatsunits
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
0indirect

Code & Tests

Datasets

People & History

People (8)
Maintainer (1)
Author, Maintainer · added in 5.0.0
Authors (4)
Author, Maintainer · added in 5.0.0
Author · added in 5.6.0
Author · added in 4.1.0
Contributors (4)
Contributor · added in 5.6.0
Contributor · added in 5.6.0
Contributor · added in 2.4
Contributor
Listed in earlier versions (5)
no longer listed · 1.6 to 4.1.4
no longer listed · 1.6 to 2.3
no longer listed · 2.4 to 5.5.1
no longer listed · 2.4 to 4.1.4
Package Timeline

33 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 5.6.1Latest
    2026-05-05 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 5.6.0
    2025-09-30 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 5.5.1
    2024-01-09 · diff ↗
  • 5.5.0
    2023-05-17 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 5.4.1
    2023-01-16 · diff ↗
  • 5.4.0
    2022-11-22 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 5.3.0
    2022-02-25 · diff ↗
  • 5.2.0
    2022-01-24 · diff ↗
  • 5.1.0
    2021-12-15 · diff ↗
  • 5.0.1
    2021-10-20 · diff ↗
  • 5.0.0
    2021-10-18 · diff ↗
Show 43 earlier events
  • R
    R 4.1.0 released · 2021-05-18
  • 4.1.4
    2020-09-18 · diff ↗
  • 4.1.3
    2020-06-18 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 4.1.2
    2020-04-01 · diff ↗
  • 4.1.1
    2019-12-18 · diff ↗
  • 4.1.0
    2019-08-30 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 4.0.0
    2019-04-05 · diff ↗
  • 3.4
    2018-06-14 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 3.3
    2016-08-19 · diff ↗
  • 3.2
    2016-08-17 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 3.1
    2015-10-23 · diff ↗
  • 3.0
    2015-05-22 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 2.6
    2013-09-26 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 2.5
    2012-10-12 · diff ↗
  • 2.4
    2012-05-30 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 2.3
    2012-02-04 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 2.2
    2011-05-24 · diff ↗
  • 2.1-2
    2011-05-03 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • R
    R 2.11.0 released · 2010-04-22
  • 2.1
    2009-11-03 · diff ↗
  • R
    R 2.10.0 released · 2009-10-26
  • R
    R 2.9.0 released · 2009-04-17
  • R
    R 2.8.0 released · 2008-10-20
  • 2.0
    2008-06-20 · diff ↗
  • R
    R 2.7.0 released · 2008-04-22
  • R
    R 2.6.0 released · 2007-10-03
  • R
    R 2.5.0 released · 2007-04-24
  • 1.6.2
    2007-03-09 · diff ↗
  • 1.6.1
    2007-02-11 · diff ↗
  • 1.6
    2007-01-24
  • R
    R 2.4.0 released · 2006-10-03

Package metadata

First published
2007-01-24
Total releases
33 / 19 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Bundled data
575 KB / 8 files
Download size
1.4 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →