Skip to contents

The declared S3 class

Construct and coerce to declared.

as.declared() declared() is.declared() anyNAdeclared()
Labelled vectors with declared missing values
declared_package declared-package
Functions for Declared Missing Values

Coercion to other classes

Convert to other classes, remove declared attributes.

undeclare() drop_na()
Drop information / undeclare labelled objects
as.haven()
Coerce to haven / labelled objects

Working with labels

Working with value labels and measurement labels.

label() `label<-`() `labels<-`()
Get / Declare value labels
measurement() `measurement<-`()
Get / Set measurement levels for declared objects

Working with missing values

Declaring missing values.

missing_range() `missing_range<-`() missing_values() `missing_values<-`()
Get / Declare missing values
is.empty() anyNAempty()
Test the presence of empty (undeclared) missing values

Arithmetic methods

Correctly calculate (weighted) statistical values and summaries, when declared missing values are present.