tbl_sum.cnd_df {sdtm.oak} | R Documentation |
Conditioned tibble header print method
Description
Conditioned tibble header print method. This S3 method adds an extra line
in the header of a tibble that indicates the tibble is a conditioned tibble
(# Cond. tbl:
) followed by the tally of the conditioning vector: number
of TRUE, FALSE and NA values: e.g., 1/1/1
.
Usage
## S3 method for class 'cnd_df'
tbl_sum(x, ...)
Arguments
x |
A conditioned tibble of class |
... |
Additional arguments passed to the default print method. |
Value
A character vector with header values of the conditioned data frame.
See Also
ctl_new_rowid_pillar.cnd_df()
.
Examples
df <- data.frame(x = c(1L, NA_integer_, 3L))
(cnd_df <- condition_add(dat = df, x >= 2L))
pillar::tbl_sum(cnd_df)
[Package sdtm.oak version 0.2.0 Index]