Skip to content

BalancedSampling

2.1.1Package record

Balanced and Spatially Balanced Sampling

1packages dependsuggested by 4
13.5Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 3.7 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.1.1
READMENoVignettesNoNEWSNoCitation fileNoWebsiteYes
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

13.5K
CRAN downloads in the past year
Rank #2,952 · ~37/day · ~1.1K/mo
Daily download trend is not available in this view yet.
2.4K30 days
4.6K90 days
13.5K1 year
Compare downloads with other packages →
Also on405 r2u38 autocran76 c2d4u

Repository

3Stars
1Forks
1Open issues
0Open PRs
3Releases
87Commits
2Commit identities
87 commits · Last activity 2024-11-15 · +50% stars, 30d
Responsiveness
How these are sampled
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

2024-12-31 · 12026-09-29 · 3
PracticesBeta

Checks run against github.com/envisim/balancedsampling on 2026-10-18.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing BalancedSampling adds 2 packages (2 with compiled code, 2.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB.

Depends (0)
none
Imports (1)
LinkingTo (2)
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 4
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (3)
Author, Maintainer since 1.0 (2014)
Author · added in 1.6.3
Contributor · added in 1.5.1
Releases (11)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.1.1Latest
    record
    2024-11-18 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.0.6
    record
    2024-03-01 · diff ↗
  • 2.0.5
    record
    2024-02-23 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.6.3
    record
    2022-06-29 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 1.5.5
    record
    2019-03-01 · diff ↗
  • 1.5.4
    record
    2018-09-10 · diff ↗
  • 1.5.3
    record
    2018-08-14 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
Show 9 earlier eventsHide 9 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • 1.5.2
    record
    2016-07-04 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.5.1
    record
    2016-01-27 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 1.4
    record
    2014-05-02 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 1.0
    record
    2014-03-24
  • R
    R 3.0.0 released · 2013-04-03

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")
Grafström, A., Lisic, J., & Prentius, W. (2024). BalancedSampling: Balanced and Spatially Balanced Sampling (Version 2.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for BalancedSampling version 2.1.1 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy