powered by
This function serves to display numbers in plain text, using a given number of digits after the comma.
disp(n, d1 = 2, d2 = 1)
A vector of character strings containing the input number n formatted as specified by d1 and d2.
n
d1
d2
Vector of real numbers to be displayed.
Number of digits numbers are basically rounded to.
If numbers in \(n\) are smaller than \(10^{-\code{d1}}\), then d2 significant digits are given.
Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com, http://www.kasparrufibach.ch
r <- c(0.23445, 0.000089) disp(r)
Run the code above in your browser using DataLab