format_tbl: Format table to report

Description Usage Arguments Examples

View source: R/report.R

Description

Format table to report

Usage

1
format_tbl(data, digits = 2, NA_symbol = "-", fun_title = str_clean)

Arguments

data

data frame

digits

Same argument as round

NA_symbol

NA_symbol

fun_title

fun_title

Examples

1
2
3
4
5
6
7
8
data <- data.frame(
  a_value.e = c(NA, runif(3)),
  `another.vAlue__here` = c(NA, runif(3)) * 10000
)

data
format_tbl(data)
format_tbl(data, digits = 0, NA_symbol = "***", fun_title = toupper)

jbkunst/jbkmisc documentation built on Nov. 8, 2019, 11:40 a.m.