Package: fmtr 1.6.5

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

fmtr_1.6.5.tar.gz
fmtr_1.6.5.zip(r-4.5)fmtr_1.6.5.zip(r-4.4)fmtr_1.6.5.zip(r-4.3)
fmtr_1.6.5.tgz(r-4.4-x86_64)fmtr_1.6.5.tgz(r-4.4-arm64)fmtr_1.6.5.tgz(r-4.3-x86_64)fmtr_1.6.5.tgz(r-4.3-arm64)
fmtr_1.6.5.tar.gz(r-4.5-noble)fmtr_1.6.5.tar.gz(r-4.4-noble)
fmtr_1.6.5.tgz(r-4.4-emscripten)fmtr_1.6.5.tgz(r-4.3-emscripten)
fmtr.pdf |fmtr.html
fmtr/json (API)
NEWS

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

Peer review:

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

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

On CRAN:

fmtrformatformatsformatting

8.71 score 12 stars 5 packages 109 scripts 1.0k downloads 33 exports 14 dependencies

Last updated 5 months agofrom:e85707567d. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 10 2024
R-4.5-win-x86_64OKNov 10 2024
R-4.5-linux-x86_64OKNov 10 2024
R-4.4-win-x86_64OKNov 10 2024
R-4.4-mac-x86_64OKNov 10 2024
R-4.4-mac-aarch64OKNov 10 2024
R-4.3-win-x86_64OKNov 10 2024
R-4.3-mac-x86_64OKNov 10 2024
R-4.3-mac-aarch64OKNov 10 2024

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

Dependencies:clicommoncrayonfansigluelifecyclemagrittrpillarpkgconfigRcpprlangtibbleutf8vctrs

Convenience Functions

Rendered fromfmtr-convenience.Rmdusingknitr::rmarkdownon Nov 10 2024.

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

Complete Example 1

Rendered fromfmtr-example1.Rmdusingknitr::rmarkdownon Nov 10 2024.

Last update: 2024-01-08
Started: 2021-11-18

Complete Example 2

Rendered fromfmtr-example2.Rmdusingknitr::rmarkdownon Nov 10 2024.

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

Frequently Asked Questions

Rendered fromfmtr-faq.Rmdusingknitr::rmarkdownon Nov 10 2024.

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

fmtr

Rendered fromfmtr.Rmdusingknitr::rmarkdownon Nov 10 2024.

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

Format and Combine

Rendered fromfmtr-fapply2.Rmdusingknitr::rmarkdownon Nov 10 2024.

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

Format Apply Function

Rendered fromfmtr-fapply.Rmdusingknitr::rmarkdownon Nov 10 2024.

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

Format Catalogs

Rendered fromfmtr-fcat.Rmdusingknitr::rmarkdownon Nov 10 2024.

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

Format Data Function

Rendered fromfmtr-fdata.Rmdusingknitr::rmarkdownon Nov 10 2024.

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

Helper Functions

Rendered fromfmtr-helpers.Rmdusingknitr::rmarkdownon Nov 10 2024.

Last update: 2021-11-18
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 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