Learn R Programming

declared (version 0.27)

Functions for Declared Missing Values

Description

A zero dependency package containing functions to declare labels and missing values, coupled with associated functions to create (weighted) tables of frequencies and various other summary measures. Some of the base functions have been rewritten to make use of the specific information about the missing values, most importantly to distinguish between empty and declared NA values. Some functions have similar functionality with the corresponding ones from packages "haven" and "labelled". The aim is to ensure as much compatibility as possible with these packages, while offering an alternative in the objects of class "declared".

Copy Link

Version

Install

install.packages('declared')

Monthly Downloads

4,346

Version

0.27

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Adrian Dusa

Last Published

August 22nd, 2026

Functions in declared (0.27)

declared-package

declared: Functions for Declared Missing Values
measurement

Get / Set measurement levels for declared objects
labels

Get / Declare value labels
declared_package

Functions for Declared Missing Values
as.haven

Coerce to haven / labelled objects
as.declared

Labelled vectors with declared missing values
is.empty

Test the presence of empty (undeclared) missing values
missing_range

Get / Declare missing values
drop_undeclare

Drop information / undeclare labelled objects
valid_na_index

Validate the declared missing values index
weighted

Compute weighted summaries for declared objects
direct_declared

declared internal functions