View source: R/utils_rtables.R
c_label_n | R Documentation |
This takes the label of the latest row split level and adds the row total from df
in parentheses.
This function differs from c_label_n_alt()
by taking row counts from df
rather than
alt_counts_df
, and is used by add_rowcounts()
when alt_counts
is set to FALSE
.
c_label_n(df, labelstr, .N_row)
df |
( |
labelstr |
( |
.N_row |
( |
A list with formatted rtables::CellValue()
with the row count value and the correct label.
It is important here to not use df
but rather .N_row
in the implementation, because
the former is already split by columns and will refer to the first column of the data only.
c_label_n_alt()
which performs the same function but retrieves row counts from
alt_counts_df
instead of df
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.