Large‐scale Randomised Sampling Design
sampling_design_large_scale_random.RdLarge‐scale Randomised Sampling Design
Arguments
- data_reefs_pts_sf
An
sfobject representing the full field. Must contain:Year— survey year (numeric)Reef— unique reef identifierHCC,SC,MA— benthic cover values (logit scale)geometry— spatial geometry
- config_lrge
A list with:
n_sites— number of sites per selected reefseed— random seed for reproducibility
Value
An sf object representing the large-scale randomised sampling design.
Includes selected reefs, sampled sites, valid selected years, and all
associated cover values (still on the logit scale).
Details
Randomly selects a fixed number of sites within each
reefs. Valid survey years are then sampled per reef using
temporal constraints (via sample_years_with_condition()).
The function:
Randomly selects a fixed number of sites within each reef
Uses
sample_years_with_condition()to select years per reefFilters the dataset to retain only valid reef–year combinations