Learn R Programming

clinify (version 0.3.0)

print.clintable: Clintable print method

Description

Extraction of flextable print method with special handling of clintable pages and

Usage

# S3 method for clintable
print(x, n = 3, nrows = 15, apply_defaults = TRUE, ...)

# S3 method for clintable knit_print(x, n = 3, nrows = 15, apply_defaults = TRUE, ...)

Value

Invisible

Arguments

x

A clintable object

n

Number of pages within the clintable to print. Only used when pagination is configured

nrows

Number of rows to print. Only used when rows aren't configured within the pagination method

apply_defaults

Apply default styles. These styles are stored in the options clinify_header_default, clinify_footer_default, and clinify_table_default respectively. Defaults to true.

...

Additional parameters passed to flextable print method

Examples

Run this code

ct <- clintable(mtcars)

print(ct)

ct <- clin_alt_pages(
  ct,
  key_cols = c("mpg", "cyl", "hp"),
  col_groups = list(
    c("disp", "drat", "wt"),
    c("qsec", "vs", "am"),
    c("gear", "carb")
  )
)

print(ct)

Run the code above in your browser using DataLab