round_df: round_df

Description Usage Arguments Details Value Author(s) Examples

View source: R/utility_functions.r

Description

Round numeric columns of a data frame or tibble

Usage

1
round_df(data, dig = 2)

Arguments

data

A data frame or tibble

dig

The number of digits to round to

Details

Takes a data frame or tibble as input, rounds the numeric columns to the specified number of digits.

Value

An object of the same class as 'data', with the numeric columns rounded off to 'dig'

Author(s)

Kieran Healy

Examples

1

kjhealy/socviz documentation built on July 20, 2020, 7:36 a.m.