Package: declared 0.26.8
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:
declared_0.26.8.tar.gz
declared_0.26.8.zip(r-4.7)declared_0.26.8.zip(r-4.6)declared_0.26.8.zip(r-4.5)
declared_0.26.8.tgz(r-4.6-x86_64)declared_0.26.8.tgz(r-4.6-arm64)declared_0.26.8.tgz(r-4.5-x86_64)declared_0.26.8.tgz(r-4.5-arm64)
declared_0.26.8.tar.gz(r-4.7-arm64)declared_0.26.8.tar.gz(r-4.7-x86_64)declared_0.26.8.tar.gz(r-4.6-arm64)declared_0.26.8.tar.gz(r-4.6-x86_64)
declared_0.26.8.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
declared/json (API)
NEWS
| # 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
Last updated from:526bb4fcd0. Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 183 | ||
| linux-devel-x86_64 | OK | 146 | ||
| source / vignettes | OK | 202 | ||
| linux-release-arm64 | OK | 135 | ||
| linux-release-x86_64 | OK | 139 | ||
| macos-release-arm64 | OK | 130 | ||
| macos-release-x86_64 | OK | 263 | ||
| macos-oldrel-arm64 | OK | 120 | ||
| macos-oldrel-x86_64 | OK | 289 | ||
| windows-devel | OK | 119 | ||
| windows-release | OK | 100 | ||
| windows-oldrel | OK | 163 | ||
| wasm-release | OK | 102 |
Exports:anyNAdeclaredanyNAemptyanyTagged_as.declaredas.havendeclareddirect_declareddrop_naformat_declaredgetTag_hasTag_is.declaredis.emptylabellabel<-labels<-makeTag_measurementmeasurement<-missing_rangemissing_range<-missing_valuesmissing_values<-names_valuesorder_declaredundeclarevalue_labelsvariable_labelw_fivenumw_IQRw_meanw_measuresw_medianw_modew_quantilew_sdw_standardizew_summaryw_tablew_varwfivenumwIQRwmeanwmeasureswmedianwmodewquantilewsdwstandardizewsummarywtablewvar
Dependencies:
a. Motivation for the declared package
Rendered froma_Declared_solution.Rmdusingknitr::rmarkdownon May 29 2026.Last update: 2024-09-05
Started: 2022-08-17
b. Added value
Rendered fromb_Added_value.Rmdusingknitr::rmarkdownon May 29 2026.Last update: 2024-09-05
Started: 2022-08-17
c. Weighting (declared) values
Rendered fromc_Weighting.Rmdusingknitr::rmarkdownon May 29 2026.Last update: 2025-04-09
Started: 2022-08-17
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Labelled vectors with declared missing values | anyNAdeclared as.declared declared is.declared |
| Coerce to haven / labelled objects | as.haven |
| Functions for Declared Missing Values | declared_package |
| Drop information / undeclare labelled objects | drop_na drop_undeclare undeclare |
| Test the presence of empty (undeclared) missing values | anyNAempty is.empty |
| Get / Declare value labels | label label<- labels labels<- |
| Get / Set measurement levels for declared objects | measurement measurement<- |
| Get / Declare missing values | missing_range missing_range<- missing_values missing_values<- |
| Compute weighted summaries for declared objects | weighted wfivenum wIQR wmean wmeasures wmedian wmode wquantile wsd wstandardize wsummary wtable wvar w_measures |
