Package: fmtr 1.7.3

fmtr: Easily Apply Formats to Data

Contains a set of functions that can be used to apply formats to data frames or vectors. The package aims to provide functionality similar to that of SAS® formats. Formats are assigned to the format attribute on data frame columns. Then when the fdata() function is called, a new data frame is created with the column data formatted as specified. The package also contains a value() function to create a user-defined format, similar to a SAS® user-defined format.

Authors:David Bosak [aut, cre], Chen Ling [aut]

fmtr_1.7.3.tar.gz
fmtr_1.7.3.zip(r-4.7)fmtr_1.7.3.zip(r-4.6)fmtr_1.7.3.zip(r-4.5)
fmtr_1.7.3.tgz(r-4.6-x86_64)fmtr_1.7.3.tgz(r-4.6-arm64)fmtr_1.7.3.tgz(r-4.5-x86_64)fmtr_1.7.3.tgz(r-4.5-arm64)
fmtr_1.7.3.tar.gz(r-4.7-arm64)fmtr_1.7.3.tar.gz(r-4.7-x86_64)fmtr_1.7.3.tar.gz(r-4.6-arm64)fmtr_1.7.3.tar.gz(r-4.6-x86_64)
fmtr_1.7.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
fmtr/json (API)
NEWS

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

Bug tracker:https://github.com/dbosak01/fmtr/issues

Pkgdown/docs site:https://fmtr.r-sassy.org

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

fmtrformatformatsformattingcpp

9.41 score 15 stars 6 packages 121 scripts 1.6k downloads 34 exports 13 dependencies

Last updated from:a097142d82. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK147
linux-devel-x86_64OK168
source / vignettesOK233
linux-release-arm64OK142
linux-release-x86_64OK152
macos-release-arm64OK134
macos-release-x86_64OK178
macos-oldrel-arm64OK109
macos-oldrel-x86_64OK218
windows-develOK171
windows-releaseOK124
windows-oldrelOK134
wasm-releaseOK116

Exports:as.fcatas.flistas.fmtconditiondescriptionsdescriptions<-fapplyfapply2fattrfattr<-fcatfdataflistfmt_cnt_pctfmt_mean_sdfmt_mean_stderrfmt_medianfmt_nfmt_quantile_rangefmt_rangeformatsformats<-is.fcatis.flistis.formatjustificationjustification<-read.fcatread.flistvaluewidthswidths<-write.fcatwrite.flist

Dependencies:clicommoncrayongluelifecyclemagrittrpillarpkgconfigRcpprlangtibbleutf8vctrs

Convenience Functions

Rendered fromfmtr-convenience.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2022-09-01
Started: 2020-12-21

Complete Example 1

Rendered fromfmtr-example1.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2025-11-26
Started: 2021-11-18

Complete Example 2

Rendered fromfmtr-example2.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2025-11-26
Started: 2024-01-08

Frequently Asked Questions

Rendered fromfmtr-faq.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2024-05-09
Started: 2021-11-18

fmtr

Rendered fromfmtr.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2024-05-09
Started: 2020-12-09

Format and Combine

Rendered fromfmtr-fapply2.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2024-01-08
Started: 2024-01-08

Format Apply Function

Rendered fromfmtr-fapply.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2022-08-15
Started: 2020-12-21

Format Catalogs

Rendered fromfmtr-fcat.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2024-01-08
Started: 2020-12-21

Format Data Function

Rendered fromfmtr-fdata.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2020-12-28
Started: 2020-12-21

Helper Functions

Rendered fromfmtr-helpers.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2025-09-28
Started: 2020-12-21

Readme and manuals

Help Manual

Help pageTopics
Convert a format catalog to a data frameas.data.frame.fcat
Casts a format to a data frameas.data.frame.fmt
Convert a formatting list to a data frameas.data.frame.fmt_lst
Generic casting method for format catalogsas.fcat
Convert a data frame to a format catalogas.fcat.data.frame
Convert a formatting list to a format catalogas.fcat.fmt_lst
Convert a list to a format catalogas.fcat.list
Convert a tibble to a format catalogas.fcat.tbl_df
Convert to a formatting listas.flist
Convert a data frame to a formatting listas.flist.data.frame
Convert a format catalog to a formatting listas.flist.fcat
Convert a list to a formatting listas.flist.list
Convert a tibble to a formatting listas.flist.tbl_df
Generic casting method for formatsas.fmt
Convert a data frame to a user-defined formatas.fmt.data.frame
Define a condition for a user-defined formatcondition
Get or set descriptions for data frame columnsdescriptions descriptions<-
Apply formatting to a vectorfapply
Apply formatting to two vectorsfapply2
Set formatting attributesfattr
Set formatting attributesfattr<-
Create a format catalogfcat
Format a data frame or tibblefdata
Create a formatting listflist
Formatted count and percentfmt_cnt_pct
Formatted mean and standard deviationfmt_mean_sd
Formatted mean and standard errorfmt_mean_stderr
Formatted Medianfmt_median
Formatted Countfmt_n
Formatted Quantile Rangefmt_quantile_range
Formatted Rangefmt_range
Get or set formats for a data frameformats formats<-
Formatting StringsFormattingStrings
Class test for a format catalogis.fcat
Is object a formatting listis.flist
Determine whether an object is a user-defined formatis.format
Get or set justification for data frame columnsjustification justification<-
Extract labels from a user-defined formatlabels.fmt
Print a format catalogprint.fcat
Print a formatprint.fmt
Print a formatting listprint.fmt_lst
Read a format catalog from the file systemread.fcat
Read a formatting list from the file systemread.flist
Create a user-defined formatvalue
Get or set column widths for a data framewidths widths<-
Write a format catalog to the file systemwrite.fcat
Write a formatting list to the file systemwrite.flist