https://cran.ma.imperial.ac.uk/web/packages/ksformat/index.html
CRAN: Package ksformat
Provides 'SAS' 'PROC FORMAT'-like functionality for creating and applying value formats in R. Supports discrete and range-based mapping of values to labels,...
cranpackage