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

See Also

investigate() to look into vertical repetition.


USFWS/migbirdHarvestData documentation built on Nov. 18, 2024, 5:56 a.m.