print_options | R Documentation |
This function allow user to define how data.table is printed.
print_options(
topn = 5,
nrows = 100,
class = TRUE,
row.names = TRUE,
col.names = "auto",
print.keys = TRUE,
trunc.cols = FALSE
)
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 |
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).
None. This function is used for its side effect of changing options.
print.data.table
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.