powered by
Adds in a numeric row to a tangram.pipe table.
tangram.pipe
num_row( list_obj, row_var, col_var = NULL, newdata = FALSE, rowlabel = NULL, summary = NULL, missing = NULL, overall = NULL, comparison = NULL, digits = NULL )
A list with the numeric row's table information added as a new element to list_obj.
list_obj
the name of the tbl_start object previously initialized.
tbl_start
the name of the variable to be used in the rows.
the variable to be used in the table columns. Default is from initialized tbl_start object.
enter new dataset name if different from that initialized in tbl_start.
the label for the table row name, if different from row_var.
row_var
summary function for the data, if different from the one supplied in tbl_start.
logical: if TRUE, missing data is considered; FALSE only uses complete cases.
logical: if TRUE, an overall column is included.
the name of the comparison test to use, if different from that initialized in tbl_start.
significant digits to use.
Possible summary functions for numeric data: num_default, num_mean_sd, num_medianiqr, num_minmax, num_date
Other related row-building functions: cat_row, binary_row, n_row, empty_row
Starting a tangram.pipe table: tbl_start
x <- tbl_start(iris, "Species", missing=TRUE, overall=TRUE, comparison=TRUE) %>% num_row("Sepal.Length", rowlabel="Sepal Length")
Run the code above in your browser using DataLab