ptable: Formats a data frame numeric and integer columns into a...

Description Usage Arguments Examples

Description

Formats a data frame numeric and integer columns into a readable format.

Usage

1
ptable(df, fnames = TRUE)

Arguments

fnames

By default, fnames = TRUE transforms the names of the columns into readable names using fancy_names. To leave them identical use fnames = FALSE.

data.frame

df

Examples

1
2
3
4
5
6
7
8
options(scipen = 999, digits = 10) # disable scientific notation
df <- data.frame(
  big_numbers = rnorm(10, 1000000,1000000),
  big_integers = floor(rnorm(10, 1000000,1000000)),
  mixed.numbers = c(rnorm(5, 100, 50), rnorm(5, 100, 50))
)
df
ptable(df)

animalito/rformat documentation built on May 10, 2019, 11:49 a.m.