# NOT RUN {
if(interactive()) {
sl5 <- factor(iris$Sepal.Length > 5, levels = c(TRUE, FALSE),
labels = c("S.L > 5", "S.L <= 5"))
df <- cbind(iris, sl5 = sl5)
tbl <- basic_table() %>%
split_cols_by("sl5") %>%
analyze("Sepal.Length") %>%
build_table(df)
Viewer(tbl)
Viewer(tbl, tbl)
tbl2 <-htmltools::tags$div(
class = "table-responsive",
as_html(tbl, class_table = "table")
)
Viewer(tbl, tbl2)
}
# }
Run the code above in your browser using DataLab