ksformat: 'SAS'-Style 'PROC FORMAT' for R

Provides 'SAS' 'PROC FORMAT'-like functionality for creating and applying value formats in R. Supports discrete and range-based mapping of values to labels, reverse formatting (invalue), date/time/datetime formatting with built-in 'SAS' format names, multi-label formats, expression labels evaluated at apply-time, case-insensitive matching, import/export of format definitions, and proper handling of missing values (NA, NULL, NaN).

Version: 0.4.2
Imports: cli
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-03-28
DOI: 10.32614/CRAN.package.ksformat
Author: Vladimir Larchenko [aut, cre], Igor Aleschenkov [aut]
Maintainer: Vladimir Larchenko <vladimir.larchenko at keystatsolutions.com>
BugReports: https://github.com/crow16384/ksformat/issues
License: GPL-3
URL: https://github.com/crow16384/ksformat
NeedsCompilation: no
Materials: README
CRAN checks: ksformat results

Documentation:

Reference manual: ksformat.html , ksformat.pdf
Vignettes: ksformat Usage Examples (source, R code)

Downloads:

Package source: ksformat_0.4.2.tar.gz
Windows binaries: r-devel: ksformat_0.3.5.zip, r-release: ksformat_0.4.2.zip, r-oldrel: ksformat_0.3.5.zip
macOS binaries: r-release (arm64): ksformat_0.3.5.tgz, r-oldrel (arm64): not available, r-release (x86_64): ksformat_0.4.2.tgz, r-oldrel (x86_64): ksformat_0.4.2.tgz
Old sources: ksformat archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ksformat to link to this page.