Round Columns to given Number of Digits
Arguments
- dframe
data frame containing numeric columns to be rounded
- columns
names of (numeric) columns in
dframe
to be rounded.- digits
number of digits to be rounded to (vector of length 1 expected) or list of assignments in the form:
<column_name> = <n_digits>
. If you give a list here, then there is no need to set the argumentcolumnNames
.- pattern
regular expression matching the names of the columns to be rounded. Will only be evaluated if no explicit column names are given in
columnNames
.- columnNames
deprecated. Use argument
columns
instead.