Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

new_tbl_format_setup

Construct a setup object for formatting


Description

The object returned from the default method of tbl_format_setup() is an object with a "class" attribute and the elements described in the "Parameters" section.

Named elements can be added to such objects without affecting the behavior. Do not modify existing elements.

Usage

new_tbl_format_setup(
  x,
  df,
  width,
  tbl_sum,
  body,
  rows_missing,
  rows_total,
  extra_cols,
  extra_cols_total
)

Arguments

x

The input object unchanged.

df

A data frame representation of the intended output, trimmed to the desired number of rows.

width

The width argument unchanged.

tbl_sum

A named character vector, as returned from tbl_sum().

body

A character vector with the formatted body, one element per line,

rows_missing

The number of rows not shown from the body, NA if unknown.

rows_total

The total number of rows in the data, NA if unknown.

extra_cols

Columns that did not fit into the body, as a character vector of formatted column names and types.

extra_cols_total

The total number of columns, may be larger than length(extra_cols).


pillar

Coloured Formatting for Columns

v1.6.0
MIT + file LICENSE
Authors
Kirill Müller [aut, cre], Hadley Wickham [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.