prettytable: Prettify the Numeric Columns of a Table

Description Usage Arguments Value Examples

View source: R/prettytable.R

Description

Prettify the numeric columns of a table, by formating them and converting them to character columns for printing.

Usage

1
prettytable(df, digits = 2, rounds = TRUE, bigseps = ",")

Arguments

df

A data frame to be prettified.

digits

Integer vector of either length 1 or the number of columns in df, number of digits to be used, default 2. See round.

rounds

Logical vector of either length 1 or the number of columns in df, indicating whether numbers should be rounded to digits decimal places (TRUE, the default), rounded to digits significant digits (FALSE), or not rounded at all (NULL).

bigseps

Character vector of either length 1 or the number of columns in df, giving the character to be used as a mark between every three digits before the decimal, default ",".

Value

A data frame the same dimensions as df with the numeric columns converted to character columns, formated as specified.

Examples

1
2

JVAdams/jvamisc documentation built on Aug. 11, 2021, 6:43 a.m.