Learn R Programming

bruceR (version 0.7.2)

formatF: Format numeric values.

Description

Format numeric values.

Usage

formatF(x, digits = 3, nsmall = digits)

Arguments

x

A number or numeric vector.

digits, nsmall

Number of decimal places of output. Default is 3.

Value

Formatted character string.

See Also

format, formatN

Examples

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

# }

Run the code above in your browser using DataLab