Skip to contents

A small creel count data frame designed for demonstrating validate_creel_data() and related data-cleaning functions. Contains an intentional NA in the count column to trigger the NA-rate check.

Usage

creel_counts_toy

Format

A data frame with 6 rows and 4 columns:

date

Survey date (Date class).

day_type

Day type stratum: "weekday" or "weekend".

section

Survey section: "A" or "B".

count

Instantaneous angler count; one row is intentionally NA.

Source

Simulated data for package examples and vignettes.

Examples

data(creel_counts_toy)
validate_creel_data(counts = creel_counts_toy)
#> 
#> ── Creel Data Validation ───────────────────────────────────────────────────────
#> 11 pass | 1 warn | 0 fail
#> 
#> 
#> ── Table: counts ──
#> 
#>  date
#> ✔ type: class: Date
#> ✔ na_rate: 0 / 6 NA (0%)
#> ✔ date_range: all within 1970-01-01 - 2100-12-31
#>  day_type
#> ✔ type: class: character
#> ✔ na_rate: 0 / 6 NA (0%)
#> ✔ empty_strings: none
#>  section
#> ✔ type: class: character
#> ✔ na_rate: 0 / 6 NA (0%)
#> ✔ empty_strings: none
#> ! count
#> ✔ type: class: integer
#> ⚠ na_rate: 1 / 6 NA (17%)
#> ✔ negative_values: none
#>