Learn R Programming

scales (version 0.1.0)

scientific_format: Scientific formatter.

Description

Scientific formatter.

Usage

scientific_format(digits = 3, ...)

Arguments

digits
number of significant digits to show
...
other arguments passed on to format

Value

  • a function with single paramater x, a numeric vector, that returns a character vector

Examples

Run this code
scientific_format()(1:10)
scientific_format()(runif(10))
scientific_format(digits = 2)(runif(10))
scientific(1:10)
scientific(runif(10))
scientific(runif(10), digits = 2)

Run the code above in your browser using DataLab