format {ordr} | R Documentation |
Format a tbl_ord for printing
Description
These methods of base::format()
and base::print()
render a
(usually more) tidy readout of a tbl_ord that is consistent across all
original ordination classes.
Usage
## S3 method for class 'tbl_ord'
format(
x,
width = NULL,
...,
n = NULL,
max_extra_cols = NULL,
max_footer_lines = NULL
)
## S3 method for class 'tbl_ord'
print(
x,
width = NULL,
...,
n = NULL,
max_extra_cols = NULL,
max_footer_lines = NULL
)
Arguments
x |
A tbl_ord. |
width |
Width of text output to generate. This defaults to |
... |
Additional arguments. |
n |
Number of rows to show. If |
max_extra_cols |
Number of extra columns to print abbreviated information for,
if the width is too small for the entire tibble. If |
max_footer_lines |
Maximum number of footer lines. If |
Details
The format
and print
methods for class 'tbl_ord' are adapted from those
for class 'tbl_df' and for class 'tbl_graph' from the
tidygraph package.
Note: The format()
function is tedius but cannot be easily modularized
without invoking recoverers, annotation, and augmentation multiple
times, thereby significantly reducing performance.
Value
The format()
method returns a vector of strings that are more
elegantly printed by the print()
method, which itself returns the tbl_ord
invisibly.