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.
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.
See also
Other "Example Datasets":
creel_interviews_toy,
example_aerial_counts,
example_aerial_glmm_counts,
example_aerial_interviews,
example_ages,
example_calendar,
example_camera_counts,
example_camera_interviews,
example_camera_timestamps,
example_catch,
example_counts,
example_ice_interviews,
example_ice_sampling_frame,
example_interviews,
example_lengths,
example_sections_calendar,
example_sections_counts,
example_sections_interviews
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
#>
