Balanced and Spatially Balanced Sampling
Overview
Select balanced and spatially balanced probability samples in multi-dimensional spaces with any prescribed inclusion probabilities. It contains fast (C++ via Rcpp) implementations of the included sampling methods. The local pivotal method by Grafström, Lundström and Schelin (2012) doi:10.1111/j.1541-0420.2011.01699.x and spatially correlated Poisson sampling by Grafström (2012) doi:10.1016/j.jspi.2011.07.003 are included. Also the cube method (for balanced sampling) and the local cube method (for doubly balanced sampling) are included, see Grafström and Tillé (2013) doi:10.1002/env.2194.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 10 (1 internal)includes a package overview page
- Examples that run
- 0%9 never run
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 70%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Checks run against github.com/envisim/balancedsampling on 2026-10-18.
No development-tooling practices detected in the upstream repository.
Dependencies
Installing BalancedSampling adds 2 packages (2 with compiled code, 2.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.1.1Latest
- RR 4.4.0 released · 2024-04-24
- 2.0.62024-03-01 · diff ↗
- 2.0.52024-02-23 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.6.32022-06-29 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 1.5.52019-03-01 · diff ↗
- 1.5.42018-09-10 · diff ↗
- 1.5.32018-08-14 · diff ↗
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2014-03-24
- Total releases
- 11 / 12 yrs
- License
- AGPL-3 OSI · relicensed from GPL (>= 2) in 2.1.1
- Download size
- 38 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("BalancedSampling")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.