txt_mean_sem | R Documentation |
Summary text functions for html tables
txt_mean_sem(var, na.rm = TRUE, digits = 2, unicode = T)
var |
A numeric vector or variable name within a dataframe |
na.rm |
a logical value indicating whether NA values should be stripped |
digits |
number of decimal places (limited to 1-3) |
A character vector with mean and sem, suitable for printing in an html table
sprintf
, mean
, sd
txt_mean_sem(mtcars$mpg)
txt_mean_sem(mtcars$mpg, digits=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.