Package: ksformat 0.8.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.8.1.tar.gz
ksformat_0.8.1.zip(r-4.7)ksformat_0.8.1.zip(r-4.6)ksformat_0.8.1.zip(r-4.5)
ksformat_0.8.1.tgz(r-4.6-any)ksformat_0.8.1.tgz(r-4.5-any)
ksformat_0.8.1.tar.gz(r-4.7-any)ksformat_0.8.1.tar.gz(r-4.6-any)
ksformat_0.8.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://crow16384.r-universe.dev', 'https://cloud.r-project.org'))

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

On CRAN:

Conda:

5.18 score 7 scripts 473 downloads 30 exports 1 dependencies

Last updated from:1c0f96f8bf. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK152
source / vignettesOK194
linux-release-x86_64OK174
macos-release-arm64OK105
macos-oldrel-arm64OK112
windows-develOK154
windows-releaseOK101
windows-oldrelOK99
wasm-releaseOK110

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 Jun 18 2026.

Last update: 2026-06-04
Started: 2026-02-18

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