Create a custom function that takes a data frame and a number of decimal places as input, rounds all numeric columns in the data frame to the specified number of decimal places, and returns the modified data frame.

nice_tab(data, digit_decimal = 2)

Arguments

data

A data frame.

digit_decimal

A number of decimal places.

Value

A data frame with all numeric columns rounded to the specified number of decimal places.