Format a number

Share:

Description

Format an R object for pretty printing.

Usage

1
format_n.ade(x, digits=2, scientific=FALSE)

Arguments

x
  • a numeric value

  • a vector of numeric values

  • a matrix of numeric values

digits

how many significant digits are to be shown

scientific

a logical specifying whether the number should be encoded in scientific format

Value

An object of similar structure to x containing character representations of the elements of x in a common format

See Also

format_p.ade

Examples

1
format_n.ade((1:10)/100)