Rdocumentation
powered by
Learn R Programming
reporttools (version 1.0.2)
disp: Display numbers in text
Description
This function serves to display numbers in plain text, using a given number of digits after the comma.
Usage
disp(n, d = 2)
Arguments
n
(Real) Number to be displayed.
d
Number of digits after the comma.
Value
t
A character string containing the input number $n$ formatted as specified by $d$.
Examples
Run this code
r <-
pi
disp(r)
Run the code above in your browser using
DataLab