| show_df | R Documentation |
Create a pretty text representation of a data.frame.
show_df(
x,
pad = 0L,
spacing = 1L,
ddSci_dp = NULL,
transpose = FALSE,
justify = "right",
incl_colnames = TRUE,
incl_rownames = TRUE,
colnames_formatter = highlight,
rownames_formatter = gray,
output_type = NULL
)
x |
data frame |
pad |
Integer: Pad output with this many spaces. |
spacing |
Integer: Number of spaces between columns. |
ddSci_dp |
Integer: Number of decimal places to print using ddSci. Default = NULL for no formatting |
transpose |
Logical: If TRUE, transpose |
justify |
Character: "right", "left". |
incl_colnames |
Logical: If TRUE, include column names. |
incl_rownames |
Logical: If TRUE, include row names. |
colnames_formatter |
Format function for printing column names. |
rownames_formatter |
Format function for printing row names. |
output_type |
Character ("ansi", "html", "plain") or NULL: Output type. If NULL, resolved
via |
Character: Formatted string representation of the data.frame.
EDG
show_df(iris[1:3, ]) |> cat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.