fmt_header_n | R Documentation |
The function formats counts as \n(N=XX)
. This helper
function is used to add counts in columns titles.
fmt_header_n(n, newline = TRUE)
n |
count values |
newline |
indicates to prefix the text with a new line (sof return). |
tabulator()
, mk_par()
Other text formatter functions:
fmt_2stats()
,
fmt_avg_dev()
,
fmt_dbl()
,
fmt_int()
,
fmt_n_percent()
,
fmt_pct()
,
fmt_signif_after_zeros()
library(flextable)
df <- data.frame(zz = 1)
ft_1 <- flextable(df)
ft_1 <- append_chunks(
x = ft_1, j = 1, part = "header",
value = as_chunk(fmt_header_n(200))
)
ft_1 <- autofit(ft_1)
ft_1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.