Skip to contents

This function formats a numeric vector to display numbers with 2 decimal places.

Usage

scaleFUN(x)

Arguments

x

Numeric vector to be formatted.

Value

A character vector with numbers formatted to 2 decimal places.

Examples

x <- c(9.3475, 0.1974)
scaleFUN(x)
#> [1] "9.35" "0.20"