tbl {fastrep} | R Documentation |
tbl
Description
This is the primary function of fastrep, with her you can make tables in HTML or LaTeX format, the main idea is to provide minimal parameters to create their own table, so you necessarily only need to provide a data.frame
Usage
tbl(
obj,
title = "",
format = NULL,
code = FALSE,
tabs = FALSE,
full_page = TRUE,
...
)
Arguments
obj |
Object used to create the table.
|
title |
Title for the table, write in string format |
format |
Format of table, write in string format. Possible values are |
code |
If you want the table code to appear in the console, put |
tabs |
If you want a row separator inside table, put |
full_page |
If you want the table not to take up the full width of the page, put |
... |
Other arguments |
Value
Your object of input in the format of a knitr_kable
Note
Remember that by default the format is "html"
The default of code
is FALSE
The default of tabs
is TRUE
The default of full_page
is TRUE
The value of format
will be automatically determined if the function is called within a knitr document
Examples
iris %>%
dplyr::group_by(Species) %>%
dplyr::summarise(mean = mean(Sepal.Length)) %>%
fastrep::tbl("THIS FUNCTION IS SO INCREDIBLE!")
mtcars |>
dplyr::group_by(carb) |>
dplyr::summarise(sd = sd(wt)) |>
fastrep::tbl()