Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

digits

Numeric vector showing pre-specific digits


Description

Numeric vector showing pre-specific digits

Usage

digits(x, digits, format = "f", ...)

Arguments

x

a numeric vector

digits

an integer to indicate the number of digits to show.

format

format type passed to formatC.

...

additional parameters passed to formattable.

Examples

digits(pi, 2)
digits(123.45678, 3)

formattable

Create 'Formattable' Data Structures

v0.2.1
MIT + file LICENSE
Authors
Kun Ren [aut, cre], Kenton Russell [aut]
Initial release
2021-01-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.