
Minimum-sample rule for environmental surveillance percentages
Source:R/es_performance.R
es_sample_state.RdPlaces each unit in one of three states from its count of resolved samples.
A unit with no resolved samples is absent. A unit with fewer than
min_samples resolved samples has too few for its percentage to be read as
performance. Any other unit is measured.
Usage
es_sample_state(
n,
min_samples = 5L,
measured_label = "Measured",
thin_label = "Too few samples",
absent_label = "No ES site"
)Examples
es_sample_state(c(0, 3, 12))
#> [1] No ES site Too few samples Measured
#> Levels: Measured Too few samples No ES site