fround: Formating the Rounding of Numbers

froundR Documentation

Formating the Rounding of Numbers

Description

fround rounds the values in its first argument to the specified number of decimal places with surrounding quotes.

Usage

fround(x, digits)

Arguments

x

a numeric vector.

digits

integer indicating the precision to be used.

Details

pfround rounds the values in its first argument to the specified number of decimal places without surrounding quotes.

Author(s)

Andrew Gelman; Yu-Sung Su

References

Copied from the arm package

See Also

round

Examples


    x <- 3.1415926
    fround(x, digits=2)
    pfround(x, digits=2)


faraway documentation built on Aug. 23, 2022, 5:08 p.m.

Related to fround in faraway...