round_num: Round numeric variables in a data frame

Description Usage Arguments Value Examples

View source: R/round_num.R

Description

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

Usage

1
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

1
2

strengejacke/sjmisc documentation built on Aug. 14, 2018, noon