Package: declared 0.27

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.27.tar.gz
declared_0.27.zip(r-4.7-x86_64)declared_0.27.zip(r-4.7-arm64)declared_0.27.zip(r-4.6-x86_64)declared_0.27.zip(r-4.6-arm64)declared_0.27.zip(r-4.5-x86_64)
declared_0.27.tgz(r-4.6-x86_64)declared_0.27.tgz(r-4.6-arm64)declared_0.27.tgz(r-4.5-x86_64)declared_0.27.tgz(r-4.5-arm64)
declared_0.27.tar.gz(r-4.7-arm64)declared_0.27.tar.gz(r-4.7-x86_64)declared_0.27.tar.gz(r-4.6-arm64)declared_0.27.tar.gz(r-4.6-x86_64)
declared_0.27.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.15 score 6 stars 8 packages 36 scripts 3.4k downloads 52 exports 0 dependencies

Last updated from:6b53c3862a. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK172
linux-devel-x86_64OK181
source / vignettesOK183
linux-release-arm64OK140
linux-release-x86_64OK172
macos-release-arm64OK184
macos-release-x86_64OK417
macos-oldrel-arm64OK106
macos-oldrel-x86_64OK236
windows-devel-arm64OK207
windows-devel-x86_64OK142
windows-release-arm64OK288
windows-release-x86_64OK101
windows-oldrel-x86_64OK127
wasm-releaseOK112

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