stable | R Documentation |
Create tabular output from an R data frame
stable(data, ...)
## S3 method for class 'data.frame'
stable(
data,
align = cols_left(),
panel = NULL,
span = NULL,
notes = NULL,
sumrows = NULL,
units = NULL,
drop = NULL,
sizes = tab_size(),
caption = NULL,
control = st_control(),
escape_fun = tab_escape,
inspect = FALSE,
...
)
## S3 method for class 'pmtable'
stable(data, ...)
## S3 method for class 'stable'
stable(data, ...)
## S3 method for class 'stobject'
stable(data, ...)
data |
a data.frame to convert to tabular table; the user should filter
or subset so that |
... |
passed to other functions: |
align |
an alignment object created by |
panel |
character column name to use to section the table; sections will
be created from unique values of |
span |
a list of objects created with |
notes |
a character vector of notes to include at the foot of the table;
use |
sumrows |
an object created with |
units |
a named list with unit information; names should correspond to columns in the data frame |
drop |
columns to remove prior to rendering the table |
sizes |
an object returned from |
caption |
a caption for the table; this could be raw caption text or
a caption object created with |
control |
not used at the moment |
escape_fun |
a function passed to |
inspect |
if |
data <- ptdata()
a <- stable(data, r_file = "example.R", output_file = "output.tex")
b <- stable(data, panel = "STUDY")
c <- stable(data, span = colgroup("Covariates", STUDY:ALB))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.