format_numeric: Format numeric columns

Description Usage Arguments Author(s) Examples

View source: R/RFunctions.R

Description

Formats the numeric columns of a data.frame, to round to a specific number of digits.

Usage

1
format_numeric(x, digits)

Arguments

x

A data.frame.

digits

The desired number of digits.

Author(s)

Caspar J. van Lissa

Examples

1
2
dat <- mtcars
format_numeric(dat, 1)

cjvanlissa/motley documentation built on Sept. 23, 2019, 7:39 p.m.