Package: ksformat 0.7.1

Vladimir Larchenko

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

Authors:Vladimir Larchenko [aut, cre], Igor Aleschenkov [aut]

ksformat_0.7.1.tar.gz
ksformat_0.7.1.tar.gz(r-4.7-any)ksformat_0.7.1.tar.gz(r-4.6-any)
ksformat_0.7.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
ksformat/json (API)
NEWS

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

Bug tracker:https://github.com/crow16384/ksformat/issues

On CRAN:

Conda:

3.00 score 9 scripts 500 downloads 30 exports 1 dependencies

Last updated from:a2bd2ed53c. Checks:4 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK135
source / vignettesOK185
linux-release-x86_64OK148
wasm-releaseOK115

Exports:efclearfexportfimportfinputfinputcfinputkfinputnflistfmapfmap_rangesfmap_stratafmap_to_rangesfnewfnew_bidfnew_dateformat_getformat_library_appfparsefprintfputfput_allfput_dffputcfputkfputnfrangesis_missingksformat_cheatsheetrange_spec

Dependencies:cli

ksformat Usage Examples

Rendered fromusage_examples.Rmdusingknitr::rmarkdownon May 21 2026.

Last update: 2026-05-21
Started: 2026-03-25

Readme and manuals

Help Manual

Help pageTopics
ksformat: 'SAS'-Style 'PROC FORMAT' for Rksformat-package ksformat
Mark a Label for Expression Evaluatione
Remove Format(s) from Libraryfclear
Export Formats to 'SAS'-like Textfexport
Import Formats from 'SAS' PROC FORMAT CNTLOUT CSVfimport
Create Invalue Format (Reverse Formatting like 'SAS' INVALUE)finput
Apply Character Invalue by Name (like 'SAS' INPUTC)finputc
Apply Invalue Using a Composite Labelfinputk
Apply Numeric Invalue by Name (like 'SAS' INPUTN)finputn
List Format Names from Libraryflist
Create a Key-Value Mapping for Format Creationfmap
Build a Vector of Range Mappingsfmap_ranges
Build a Vector of Stratified Range Mappingsfmap_strata
Reverse-Lookup Range Bounds from Labelsfmap_to_ranges
Create a Format Definition (like 'SAS' PROC FORMAT)fnew
Create Bidirectional Formatfnew_bid
Create Date/Time Formatfnew_date
Retrieve a Format from the Libraryformat_get
Launch Shiny Browser for Format Libraryformat_library_app
Parse Format Definitions from 'SAS'-like Textfparse
Print Format(s) from Libraryfprint
Apply Format to Data (like 'SAS' PUT function)fput
Apply Format and Return All Matches (Multilabel)fput_all
Apply Format to Data Frame Columnsfput_df
Apply Character Format by Name (like 'SAS' PUTC)fputc
Apply Format Using a Composite Keyfputk
Apply Numeric Format by Name (like 'SAS' PUTN)fputn
Extract Range Entries from a Formatfranges
Check if Value is Missingis_missing
Open the ksformat cheat sheetksformat_cheatsheet
Print Format Objectprint.ks_format
Print Invalue Objectprint.ks_invalue
Create Range Specificationrange_spec