validate: Validate data

View source: R/validate.R

validateR Documentation

Validate data

Description

After cleaning the data with clean, check to make sure the data don't have any erroneously repeated values.

Usage

validate(x, type, all = FALSE)

Arguments

x

The object created after cleaning data with clean

type

Type of validation to perform. Acceptable values include:

  • vertical - Checks for repetition vertically in species and/or bag fields, grouped by dl_state and dl_date

  • horizontal - Checks for repetition horizontally, across each record

all

Should all species groups be checked (TRUE)? If set to FALSE (default), then only ducks will be vertically checked and only ducks, geese, and coots_snipe will be horizontally checked.

Author(s)

Abby Walter, abby_walter@fws.gov

References

https://github.com/USFWS/migbirdHIP


USFWS/migbirdHarvestData documentation built on Feb. 12, 2024, 4:38 p.m.