Learn R Programming

sjmisc (version 2.8.7)

round_num: 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

Run this code
# NOT RUN {
data(iris)
round_num(iris)

# }

Run the code above in your browser using DataLab