clean_digits: Clean the digits in a data frame

View source: R/one_liners.R

clean_digitsR Documentation

Clean the digits in a data frame

Description

Clean the digits in a data frame

Usage

clean_digits(df, digits = 2)

Arguments

df

A data frame with numeric columns

digits

Number of significant figures to round the numeric columns to

Value

A data frame with all numeric columns rounded to the specified number of significant figures

Author(s)

Kevin Wang

Examples

head(iris)
head(clean_digits(iris, digits = 1))

kevinwang09/KW documentation built on Aug. 20, 2022, 7:06 p.m.