R: Scientific formatter.

scientific_format {scales} | R Documentation

## Scientific formatter.

### Description

Scientific formatter.

### Usage

    scientific_format(digits = 3, ...)

    scientific(x, digits = 3, ...)

### Arguments

`digits` | number of significant digits to show
`...` | other arguments passed on to `format`
`x` | a numeric vector to format

### Value

a function with single parameter x, a numeric vector, that returns a character vector

### Examples

    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)

[Package scales version 0.5.0 Index]