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.20 score 6 stars 8 packages 36 scripts 3.8k downloads 52 exports 0 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-arm64OK128
linux-devel-x86_64OK164
source / vignettesOK195
linux-release-arm64OK129
linux-release-x86_64OK147
macos-release-arm64OK162
macos-release-x86_64OK219
macos-oldrel-arm64OK172
macos-oldrel-x86_64OK349
windows-devel-arm64OK331
windows-devel-x86_64OK152
windows-release-arm64OK349
windows-release-x86_64OK102
windows-oldrel-x86_64OK106
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