Arguments
- x
A
gtsummaryobject.- n
Number of rows to return. Default is
6Las default inutils::head()andutils::tail().- ...
Additional arguments passed to
utils::head()orutils::tail().
Examples
# head() example
trial |>
tbl_summary(by = trt) |>
head(n = 2L)
Characteristic
Drug A
N = 981
Drug B
N = 1021
1 Median (Q1, Q3); n (%)
# tail() example
trial |>
tbl_summary(by = trt) |>
tail(n = 2L)
Characteristic
Drug A
N = 981
Drug B
N = 1021
1 Median (Q1, Q3); n (%)
