print.tangram.pipe {tangram.pipe} | R Documentation |
Printing a Table
Description
Prints a finished table created from tangram.pipe.
Usage
## 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. |
Value
A dataframe object containing the information from the last element of a tangram.pipe class object created using tbl_out()
. This is the finalized table object.
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() %>%
print()
[Package tangram.pipe version 1.1.2 Index]