Package: declared 0.28

declared: Functions for Declared Missing Values

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".

Authors:Adrian Dusa [aut, cre, cph]

declared_0.28.tar.gz
declared_0.28.zip(r-4.7-x86_64)declared_0.28.zip(r-4.7-arm64)declared_0.28.zip(r-4.6-x86_64)declared_0.28.zip(r-4.6-arm64)declared_0.28.zip(r-4.5-x86_64)
declared_0.28.tgz(r-4.6-x86_64)declared_0.28.tgz(r-4.6-arm64)declared_0.28.tgz(r-4.5-x86_64)declared_0.28.tgz(r-4.5-arm64)
declared_0.28.tar.gz(r-4.7-arm64)declared_0.28.tar.gz(r-4.7-x86_64)declared_0.28.tar.gz(r-4.6-arm64)declared_0.28.tar.gz(r-4.6-x86_64)
declared_0.28.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
declared/json (API)

# Install 'declared' in R:
install.packages('declared', repos = c('https://dusadrian.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/dusadrian/declared/issues

Pkgdown/docs site:https://dusadrian.github.io

On CRAN:

Conda:

9.67 score 6 stars 9 packages 53 scripts 6.1k downloads 52 exports 0 dependencies

Last updated from:fe5fcce395. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK133
linux-devel-x86_64OK114
source / vignettesOK189
linux-release-arm64OK124
linux-release-x86_64OK126
macos-release-arm64OK87
macos-release-x86_64OK232
macos-oldrel-arm64OK169
macos-oldrel-x86_64OK163
windows-devel-arm64OK227
windows-devel-x86_64OK149
windows-release-arm64OK228
windows-release-x86_64OK110
windows-oldrel-x86_64OK107
wasm-releaseOK106

Exports:anyNAdeclaredanyNAemptyanyTagged_as.declaredas.havendeclareddirect_declareddrop_naformat_declaredgetTag_hasTag_is.declaredis.emptylabellabel<-labels<-makeTag_measurementmeasurement<-missing_rangemissing_range<-missing_valuesmissing_values<-names_valuesorder_declaredundeclarevalid_na_indexvalue_labelsvariable_labelw_fivenumw_IQRw_meanw_medianw_modew_quantilew_sdw_standardizew_summaryw_tablew_varwfivenumwIQRwmeanwmeasureswmedianwmodewquantilewsdwstandardizewsummarywtablewvar

Dependencies:

c. Weighting (declared) values

Last update: 2026-08-11
Started: 2022-08-17

b. Added value

Last update: 2026-08-08
Started: 2022-08-17

a. Motivation for the declared package
The declared solution

Last update: 2024-09-05
Started: 2022-08-17

Readme and manuals

Help Manual

Help pageTopics
Labelled vectors with declared missing valuesanyNAdeclared as.declared declared is.declared
Coerce to haven / labelled objectsas.haven
Functions for Declared Missing Valuesdeclared_package
Drop information / undeclare labelled objectsdrop_na drop_undeclare undeclare
Test the presence of empty (undeclared) missing valuesanyNAempty is.empty
Get / Declare value labelslabel label<- labels labels<-
Get / Set measurement levels for declared objectsmeasurement measurement<-
Get / Declare missing valuesmissing_range missing_range<- missing_values missing_values<-
Validate the declared missing values indexvalid_na_index
Compute weighted summaries for declared objectsweighted wfivenum wIQR wmean wmeasures wmedian wmode wquantile wsd wstandardize wsummary wtable wvar