Skip to contents

vrule_year

vrule_year

Methods

Inherited methods


Method new()

Initializes a year validation rule

Usage

vrule_year$new(na_allowed = FALSE, ...)

Arguments

na_allowed

TRUE if NA values are allowed, FALSE otherwise

...

any other arg


Method validate()

Validates a year

Usage

vrule_year$validate(value, ...)

Arguments

value

value

...

any other args

Returns

a validation report, object of class vrule_report


Method clone()

The objects of this class are cloneable with this method.

Usage

vrule_year$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.