powered by
Miscellaneous functions that are handy in summary and other tasks where you might otherwise have to craft a custom nameless functions. e.g.
umx_fun_mean_sd(x, na.rm = TRUE, digits = 2)
input
How to handle missing (default = TRUE = remove)
Rounding (default = 2)
- function result
umx_fun_mean_sd: returns "mean (SD)" of x.
umx_fun_mean_sd
Second item
note: if a factor is given, then the mode is returned instead of the mean and SD.
- https://github.com/tbates/umx, https://tbates.github.io
# NOT RUN { umxAPA(mtcars[,1:3]) # uses umx_fun_mean_sd # }
Run the code above in your browser using DataLab