tibble_as_cli: Print tibble with cli

View source: R/tibble_as_cli.R

tibble_as_cliR Documentation

Print tibble with cli

Description

Print a tibble or data frame using cli styling and formatting.

Usage

tibble_as_cli(x, na_value = "", label = list(), padding = 3L)

Arguments

x

(data.frame)
a data frame with all character columns.

na_value

(string)
a string indicating how an NA value will appear in printed table.

label

(named list)
named list of column labels to use. Default is to print the column names.

padding

(integer)
an integer indicating the amount of padding between columns.

Examples

trial[1:3, ] |> dplyr::mutate_all(as.character) |> tibble_as_cli()

gtsummary documentation built on Sept. 11, 2024, 5:50 p.m.