scientific: Numeric vector with scientific format

Description Usage Arguments Examples

View source: R/formats.R

Description

Numeric vector with scientific format

Usage

1
scientific(x, format = c("e", "E"), ...)

Arguments

x

a numeric vector.

format

format type passed to formatC.

...

additional parameter passed to formattable.

Examples

1
2
3
scientific(1250000)
scientific(1253421, digits = 8)
scientific(1253421, digits = 8, format = "E")

Example output

[1] 1.2500e+06
[1] 1.25342100e+06
[1] 1.25342100E+06

formattable documentation built on Jan. 13, 2021, 7:17 a.m.