Skip to contents

Large‐scale Randomised Sampling Design

Usage

sampling_design_large_scale_random(data_reefs_pts_sf, config_lrge)

Arguments

data_reefs_pts_sf

An sf object representing the full field. Must contain:

  • Year — survey year (numeric)

  • Reef — unique reef identifier

  • HCC, SC, MA — benthic cover values (logit scale)

  • geometry — spatial geometry

config_lrge

A list with:

  • n_sites — number of sites per selected reef

  • seed — 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 reef

  • Filters the dataset to retain only valid reef–year combinations

Author

Julie