Learn R Programming

tangram (version 0.8.2)

format_guess: Guess the best format for a given set of numerical data

Description

Given a vector of data, default to 3 significant digits or all if maximum is greater than zero

Usage

format_guess(x)

Value

numeric; the digits past the decimal recommended for display

Arguments

x

numeric; basic math and quantile function must work on data passed in

Examples

Run this code
format_guess(rnorm(100))
format_guess(rnorm(100, sd=1e-6))

Run the code above in your browser using DataLab