Applying Formats

Functions to apply formatting to data.

fdata()

Format a data frame or tibble

fapply()

Apply formatting to a vector

fapply2()

Apply formatting to two vectors

fattr()

Set formatting attributes

`fattr<-`()

Set formatting attributes

Format Catalog

Functions to create and manage format catalogs.

fcat()

Create a format catalog

read.fcat()

Read a format catalog from the file system

write.fcat()

Write a format catalog to the file system

as.fcat()

Generic casting method for format catalogs

as.fcat(<data.frame>)

Convert a data frame to a format catalog

as.fcat(<tbl_df>)

Convert a tibble to a format catalog

as.fcat(<fmt_lst>)

Convert a formatting list to a format catalog

as.fcat(<list>)

Convert a list to a format catalog

as.data.frame(<fcat>)

Convert a format catalog to a data frame

is.fcat()

Class test for a format catalog

print(<fcat>)

Print a format catalog

Formatting List

Functions to create a manage a formatting list.

flist()

Create a formatting list

read.flist()

Read a formatting list from the file system

write.flist()

Write a formatting list to the file system

as.flist()

Convert to a formatting list

as.flist(<data.frame>)

Convert a data frame to a formatting list

as.flist(<tbl_df>)

Convert a tibble to a formatting list

as.flist(<fcat>)

Convert a format catalog to a formatting list

as.flist(<list>)

Convert a list to a formatting list

as.data.frame(<fmt_lst>)

Convert a formatting list to a data frame

is.flist()

Is object a formatting list

print(<fmt_lst>)

Print a formatting list

User-Defined Formats

Functions to create a user-defined format.

value()

Create a user-defined format

condition()

Define a condition for a user-defined format

labels(<fmt>)

Extract labels from a user-defined format

as.fmt()

Generic casting method for formats

as.fmt(<data.frame>)

Convert a data frame to a user-defined format

is.format()

Determine whether an object is a user-defined format

as.data.frame(<fmt>)

Casts a format to a data frame

print(<fmt>)

Print a format

Convenience Functions

Functions to easily apply formatting attributes to a data frame or tibble.

formats() `formats<-`()

Get or set formats for a data frame

descriptions() `descriptions<-`()

Get or set descriptions for data frame columns

widths() `widths<-`()

Get or set column widths for a data frame

justification() `justification<-`()

Get or set justification for data frame columns

Helper Functions

Functions to perform common formatting tasks on statistical reports.

fmt_n()

Formatted Count

fmt_cnt_pct()

Formatted count and percent

fmt_mean_sd()

Formatted mean and standard deviation

fmt_median()

Formatted Median

fmt_quantile_range()

Formatted Quantile Range

fmt_range()

Formatted Range

Formatting Codes

A short summary of the formatting codes for formatting strings

FormattingStrings

Formatting Strings