Learn R Programming

bruceR (version 0.6.4)

formatF: Format numeric values.

Description

Format numeric values.

Usage

formatF(x, nsmall = 3)

Arguments

x

A number or numeric vector.

nsmall

Number of decimal places of output. Default is 3.

Value

Formatted character string.

See Also

formatN

Examples

Run this code
# NOT RUN {
formatF(pi, 20)

# }

Run the code above in your browser using DataLab