clin_group_pad | R Documentation |
Adds top padding to rows in a 'clintable“ based on changes in a grouping variable or non-empty values. Useful for visually separating groups in a table
clin_group_pad(
x,
pad_by,
size = 9,
when = c("change", "notempty"),
drop = FALSE
)
x |
A clintable |
pad_by |
A string indicating the column name used to detect group changes. |
size |
Numeric value for the base padding size (default is 9). |
when |
Character string indicating when to apply padding:
|
drop |
Keep or drop the padding variable used to identify padding locations |
A clintable
object with modified padding.
ct <- clintable(mtcars) |>
clin_group_pad('gear')
ct <- clintable(mtcars) |>
clin_group_pad('gear', size = 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.