umx_round | R Documentation |
A version of round() which works on dataframes that contain non-numeric data (or data that cannot be coerced to numeric) Helpful for dealing with table output that mixes numeric and string types.
umx_round(df, digits = getOption("digits"), coerce = FALSE)
df |
a dataframe to round in |
digits |
how many digits to round to (defaults to getOption("digits")) |
coerce |
whether to make the column numeric if it is not (default = FALSE) |
OpenMx::mxModel()
Other Miscellaneous Stats Functions:
FishersMethod()
,
SE_from_p()
,
geometric_mean()
,
harmonic_mean()
,
oddsratio()
,
reliability()
,
umx
,
umxCov2cor()
,
umxHetCor()
,
umxParan()
,
umxWeightedAIC()
,
umx_apply()
,
umx_cor()
,
umx_means()
,
umx_r_test()
,
umx_scale()
,
umx_var()
head(umx_round(mtcars, coerce = FALSE))
head(umx_round(mtcars, coerce = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.