umx (version 1.9.1)

umx_fun_mean_sd: umx_fun

Description

Miscellaneous functions that are handy in summary and other tasks where you might otherwise have to craft a custom nameless functions. e.g.

Usage

umx_fun_mean_sd(x, na.rm = TRUE, digits = 2)

Arguments

x

input

na.rm

How to handle missing (default = TRUE = remove)

digits

Rounding (default = 2)

Value

- function result

Details

note: if a factor is given, then the mode is returned instead of the mean and SD.

References

- https://github.com/tbates/umx, https://tbates.github.io

Examples

Run this code
# NOT RUN {
umxAPA(mtcars[,1:3]) # uses umx_fun_mean_sd
# }

Run the code above in your browser using DataCamp Workspace