Skip to content

Structurally Guided Sampling

0packages depend
4Kdownloads / year
93.3%test coverage
13/13flavors OK

Overview

About

Structurally guided sampling (SGS) approaches for airborne laser scanning (ALS; LIDAR). Primary functions provide means to generate data-driven stratifications & methods for allocating samples. Intermediate functions for calculating and extracting important information about input covariates and samples are also included. Processing outcomes are intended to help forest and environmental management practitioners better optimize field sample placement as well as assess and augment existing sample networks in the context of data distributions and conditions. ALS data is the primary intended use case, however any rasterized remote sensing data can be used, enabling data-driven stratifications and sampling approaches.

Changes in 1.5.0

fixed - Updated ggplot2 plot$labels field based. From teunbrand #36

fixed - Updated parameter filename for sample_nc() and others to correctly indicate the function outputs samples and not a raster layer. From StumWhere #36

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 7.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • WARNING12 OK, 1 WARNING2026-06-08
  • OK14 OK2026-04-08
Show 2 earlier changesHide 2 earlier changes
  • ERROR13 OK, 1 ERROR2026-04-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.5.0
READMEYes · 361 wordsVignettesYes · 4 · dynamicNEWSYes · 67% structured · mentions 1.5.0Citation fileYes · computed when R runs itWebsiteYes · pkgdown
Help pages
41 (17 internal)includes a package overview page
Examples that run
79%19 run in a plain check · 5 never run
Exported functions with examples
83%
Documented parameters
96%
Return-value docs
100%
Help pages citing references
27%

Downloads

4K
CRAN downloads in the past year
Rank #6,831 · ~11/day · ~333/mo
Daily download trend is not available in this view yet.
38230 days
1.2K90 days
4K1 year
Compare downloads with other packages →
Also on83 r2u11 autocran

Repository

54Stars
8Forks
3Open issues
0Open PRs
11Releases
582Commits
6Commit identities
License file reads as GPL-3.0 · 582 commits · Last activity 2025-06-18 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
93%
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-09-23 · 462026-08-25 · 54
PracticesBeta

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

Checks run against github.com/tgoodbody/sgsr on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-06-18 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
Lint, format, editor (1)
RStudio project
Show all practicesHide 1 practice
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
22 external dependencies (excludes base and recommended)

Installing sgsR adds 53 packages (37 with compiled code, 58 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.

Depends (2)
R >= 3.5.0methods
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (3)
Author, Maintainer since 1.0.0 (2022), Copyright holder
Releases (11)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.5.0Latest
    record
    2025-06-18 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.4.5
    record
    2024-03-03 · diff ↗
  • 1.4.4
    record
    2023-06-13 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.4.2
    record
    2023-03-10 · diff ↗ ·
    added 4 exports
    allocate_existing_equal, allocate_existing_manual, allocate_existing_optim, allocate_existing_prop
  • 1.4.0
    record
    2023-02-09 · diff ↗ ·
    added 1 export
    sample_sys_strat
  • 1.3.4
    record
    2023-01-28 · diff ↗ ·
    added 1 export
    plot_scatter
  • 1.3.3
    record
    2023-01-17 · diff ↗
  • 1.3.2
    record
    2022-11-19 · diff ↗
  • 1.3.1
    record
    2022-10-14 · diff ↗ ·
    added 2 exports
    mask_existing, sample_existing
  • 1.2.0
    record
    2022-08-07 · diff ↗ ·
    added 1 export
    sample_nc
  • 1.0.0
    record
    2022-06-24
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-06-24
Total releases
11 / 4 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Download size
4.5 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("sgsR")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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 sgsR version 1.5.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, 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