tbl_out: Output Table

Description Usage Arguments Examples

View source: R/tbl_out.R

Description

Produces a finalized table

Usage

1
tbl_out(list_obj)

Arguments

list_obj

the name of the tbl_start object previously initialized.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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", rowlabels="Sepal Length") %>%
  empty_row() %>%
  num_row("Sepal.Width", rowlabels="Sepal Width") %>%
  empty_row() %>%
  num_row("Petal.Length", rowlabels="Petal Length") %>%
  empty_row() %>%
  num_row("Petal.Width", rowlabels="Petal Width") %>%
  empty_row() %>%
  cat_row("Stem.Size", rowlabels="Stem Size") %>%
  empty_row() %>%
  binary_row("color", rowlabels="Color") %>%
  tbl_out()

thomasgstewart/tangram.pipe documentation built on June 8, 2021, 6:49 a.m.