Learn R Programming

shapr (version 1.0.6)

format_round: Format numbers with rounding

Description

Format numbers with rounding

Usage

format_round(x, digits = 2L)

Value

Character vector. The formatted numbers.

Arguments

x

Numeric vector. The numbers to format.

digits

Integer. (Maximum) number of digits to be displayed after the decimal point. Defaults to 2.