txt_mean_sem: Summary text functions for html tables

txt_mean_semR Documentation

Summary text functions for html tables

Description

Summary text functions for html tables

Usage

txt_mean_sem(var, na.rm = TRUE, digits = 2, unicode = T)

Arguments

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)

Value

A character vector with mean and sem, suitable for printing in an html table

See Also

sprintf, mean, sd

Examples

txt_mean_sem(mtcars$mpg)
txt_mean_sem(mtcars$mpg, digits=1)

JMLuther/tabletools documentation built on July 1, 2024, 2:01 p.m.