| dim.gtsummary | R Documentation |
Returns the dimension of a gtsummary table, that is, the number of rows and the number of un-hidden columns.
nrow() calls dim(); therefore, nrow() will also work on gtsummary tables.
## S3 method for class 'gtsummary'
dim(x)
x |
( |
integer vector
tbl <- tbl_summary(trial, include = age, by = trt)
dim(tbl)
nrow(tbl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.