Skip to contents

vrule_codelist

vrule_codelist

Super classes

vrule::vrule_abstract -> vrule::vrule_abstract_simple -> vrule_codelist

Public fields

ref_data_url

ref data url

ref_data

ref data

ref_data_column

ref data column

ref_data_column_alt

ref data alternate column

ref_meta_url

ref metadata url

ref_meta

ref metadata

allow_labels

allow labels?

Methods

Inherited methods


Method new()

Initializes a codelist validation rule

Usage

vrule_codelist$new(
  ref_data_url = NULL,
  ref_data_column = "code",
  ref_data_column_alt = "label",
  allow_labels = FALSE,
  ref_meta_url = NULL,
  ...
)

Arguments

ref_data_url

ref data url

ref_data_column

ref data column

ref_data_column_alt

ref data alternate column

allow_labels

Allow labels?

ref_meta_url

ref metadata url

...

any other arg


Method validate()

Validates value with a codelist validation rule

Usage

vrule_codelist$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_codelist$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.