disp {reporttools}R Documentation

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.

Author(s)

Kaspar Rufibach (maintainer), kaspar.rufibach@ifspm.uzh.ch,
http://www.biostat.uzh.ch/aboutus/people/rufibach.html

Examples

r <- pi
disp(r)

[Package reporttools version 1.0.3 Index]