print.tangram.pipe: Printing a Table

Description Usage Arguments Examples

View source: R/print.tangram.pipe.R

Description

Prints a finished table

Usage

1
2
## S3 method for class 'tangram.pipe'
print(x, ...)

Arguments

x

the name of the tbl_start object previously initialized.

...

further arguments passed to or from other methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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() %>%
  print()

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