round_num: Round numeric variables in a data frame

View source: R/round_num.R

round_numR Documentation

Round numeric variables in a data frame

Description

round_num() rounds numeric variables in a data frame that also contains non-numeric variables. Non-numeric variables are ignored.

Usage

round_num(x, digits = 0)

Arguments

x

A vector or data frame.

digits

Numeric, number of decimals to round to.

Value

x with all numeric variables rounded.

Examples

data(iris)
round_num(iris)


sjPlot/sjmisc documentation built on May 15, 2024, 6:43 p.m.