print_options {tidyfst} | R Documentation |
Set global printing method for data.table
Description
This function allow user to define how data.table is printed.
Usage
print_options(
topn = 5,
nrows = 100,
class = TRUE,
row.names = TRUE,
col.names = "auto",
print.keys = TRUE,
trunc.cols = FALSE
)
Arguments
topn |
The number of rows to be printed from the beginning and
end of tables with more than |
nrows |
The number of rows which will be printed before truncation is enforced. |
class |
If |
row.names |
If |
col.names |
One of three flavours for controlling the display of column names in output. |
print.keys |
If |
trunc.cols |
If |
Details
Notice that tidyfst has a slightly different printing default for data.table, which is it always prints the keys and variable class (not like data.table).
Value
None. This function is used for its side effect of changing options.
See Also
Examples
iris %>% as.data.table()
print_options(topn = 3,trunc.cols = TRUE)
iris %>% as.data.table()
# set all settings to default in tidyfst
print_options()
iris %>% as.data.table()