sgsR1.5.0 package

Structurally Guided Sampling

allocating

Allocating strata: existing

calculate_allocation_existing

Sample allocation type and count

calculate_allocation

Sample allocation type and count

calculate_coobs

coobs algorithm sampling

calculate_distance

Distance to access layer

calculate_lhsOpt

Analyze optimal Latin hypercube sample number

calculate_pcomp

Raster principal components

calculate_pop

Population descriptors

calculate_representation

Compare sample representation within sraster strata

calculate_sampsize

Sample size determination

check_existing

Check existing sample data against requirements

coords_existing

Get existing and XY coordinates

extract_metrics

Extract metrics

extract_strata

Extract strata

masking

Masking

matrices

Matrices

plot

Plot

prepare_existing

Prepare existing sample data

rules

Sampling rules

sample_ahels

Adapted Hypercube Evaluation of a Legacy Sample (ahels)

sample_balanced

Balanced sampling

sample_clhs

Conditioned Latin Hypercube Sampling

sample_existing_balanced

Sample Existing Data Using Balanced Sampling

sample_existing_clhs

Sub-sample using the conditional Latin hypercube sampling (CLHS)

sample_existing_srs

Randomly sample from an existing dataset

sample_existing_strat

Sample Existing Data Based on Strata

sample_existing

Sample existing

sample_nc

Nearest centroid (NC) sampling

sample_srs

Simple random sampling

sample_strat

Stratified sampling

sample_sys_strat

Systematic stratified sampling

sample_systematic

Systematic sampling

sgsR-package

sgsR: Structurally Guided Sampling

strat_breaks

Breaks stratification

strat_kmeans

k-means stratification

strat_map

Map a raster stack of a list of rasters

strat_poly

Stratify using polygons

strat_quantiles

Quantiles stratification

take_samples

Take Samples Based on Strata

vectorize

Vectorization helpers

write

Write

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.

  • Maintainer: Tristan RH Goodbody
  • License: GPL (>= 3)
  • Last published: 2025-06-18