disp: Display vectors of numbers, especially targeted to vectors of...

Description Usage Arguments Value Author(s) Examples

View source: R/disp.r

Description

This function serves to display numbers in plain text, using a given number of digits after the comma.

Usage

1
disp(n, d1 = 2, d2 = 1)

Arguments

n

Vector of real numbers to be displayed.

d1

Number of digits numbers are basically rounded to.

d2

If numbers in n are smaller than 10^{-\code{d1}}, then d2 significant digits are given.

Value

t

A vector of character strings containing the input number n formatted as specified by d1 and d2.

Author(s)

Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch

Examples

1
2
r <- c(0.23445, 0.000089)
disp(r)

reporttools documentation built on Oct. 12, 2021, 5:06 p.m.