tbl_out: Output Table

View source: R/tbl_out.R

tbl_outR Documentation

Output Table

Description

Produces a finalized tangram.pipe table.

Usage

tbl_out(list_obj)

Arguments

list_obj

the name of the tbl_start object previously initialized.

Value

A tangram.pipe class object with the finalized table as a dataframe added as the most recent element of list_obj.

Examples

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()

thomasgstewart/tangram.pipe documentation built on Aug. 18, 2022, 8:41 p.m.