tbl_out | R Documentation |
Produces a finalized tangram.pipe
table.
tbl_out(list_obj)
list_obj |
the name of the tbl_start object previously initialized. |
A tangram.pipe class object with the finalized table as a dataframe added as the most recent element of list_obj
.
iris$color <- sample(c("Blue", "Purple"), size=150, replace=TRUE) iris$Stem.Size <- sample(c("Small", "Medium", "Medium", "Large"), size=150, replace=TRUE) iris$Leaf.Color <- "Green" x <- tbl_start(iris, "Species", missing=TRUE, overall=TRUE, comparison=TRUE) %>% num_row("Sepal.Length", rowlabel="Sepal Length") %>% empty_row() %>% num_row("Sepal.Width", rowlabel="Sepal Width") %>% empty_row() %>% num_row("Petal.Length", rowlabel="Petal Length") %>% empty_row() %>% num_row("Petal.Width", rowlabel="Petal Width") %>% empty_row() %>% cat_row("Stem.Size", rowlabel="Stem Size") %>% empty_row() %>% binary_row("color", rowlabel="Color") %>% tbl_out()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.