Learn R Programming

umx (version 4.9.0)

umx_round: umx_round

Description

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.

Usage

umx_round(df, digits = getOption("digits"), coerce = FALSE)

Arguments

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)

Value

References

See Also

Other Miscellaneous Stats Helpers: FishersMethod(), SE_from_p(), geometric_mean(), harmonic_mean(), oddsratio(), reliability(), umxCov2cor(), umxHetCor(), umxWeightedAIC(), umx_apply(), umx_cor(), umx_means(), umx_r_test(), umx_scale(), umx_var(), umx

Examples

Run this code
# NOT RUN {
head(umx_round(mtcars, coerce = FALSE))
head(umx_round(mtcars, coerce = TRUE))

# }

Run the code above in your browser using DataLab