Rounds a numeric value to a specified number of decimal places and formats it
to always show the specified number of decimal places, including trailing zeros.
Usage
custom_round(x, digits = 1)
Value
A character vector with the rounded and formatted numbers.
Arguments
x
A numeric vector to be rounded and formatted.
digits
An integer indicating the number of decimal places to round to. Defaults to 1.