as_xtable.tablet | R Documentation |
Renders a tablet as xtable. Calls xtable
and implements
default aesthetics.
## S3 method for class 'tablet'
as_xtable(
x,
caption = NULL,
label = NULL,
align = NULL,
digits = NULL,
display = NULL,
auto = FALSE,
variable = " ",
format_name = function(x, ...) paste0("\\!\\!\\textbf{", x, "}"),
format_stat = function(x, ...) x,
format_value = function(x, ...) x,
...
)
x |
|
caption |
passed to |
label |
passed to |
align |
passed to |
digits |
passed to |
display |
passed to |
format_name |
function to format variable names (accepts at least x and dots) |
format_stat |
function to format names of statistics and factor levels (accepts at least x and dots) |
format_value |
function to format cell values (accepts at least x and dots) |
... |
passed to |
like xtableList
library(boot)
library(dplyr)
library(magrittr)
library(xtable)
melanoma %>%
select(-time, -year) %>%
mutate(sex = factor(sex), ulcer = factor(ulcer)) %>%
group_by(status) %>%
tablet %>%
as_xtable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.