round.numerics: round.numerics

View source: R/DTWrapper2.R

round.numericsR Documentation

round.numerics

Description

This function rounds numeric or complex values to the specified number of digits. If the input is not numeric or complex, the values are returned untouched.

Usage

## S3 method for class 'numerics'
round(x, digits = 0, ...)

Arguments

x

A vector.

digits

The number of digits to round to. Defaults to 0.

...

Additional arguments.

Value

If x is numeric or complex, the values will be rounded to the specified number of digits. Otherwise, the values of x will be returned untouched.


DTwrappers2 documentation built on June 22, 2024, 9:17 a.m.