Skip to contents

vrule_datatype

vrule_datatype

Super classes

vrule::vrule_abstract -> vrule::vrule_abstract_simple -> vrule_datatype

Public fields

datatype

data type

na_allowed

is NA allowed?

Methods

Inherited methods


Method new()

Initializes a data type validation rule

Usage

vrule_datatype$new(datatype, na_allowed = FALSE, ...)

Arguments

datatype

data type

na_allowed

is NA allowed?

...

any other arg


Method validate()

Abstract method to validate data

Usage

vrule_datatype$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_datatype$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.