Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

paste.round

Paste rounded values


Description

Paste rounded values

Usage

pasteRound(..., digits=16, sep=" ", collapse=NULL)

Arguments

...

list of arguments to be pasted.

digits

Integer, argument to round.

sep, collapse

Character, arguments to paste.

Value

The concatenation of formatted values

Author(s)

Dimitris Rizopoulos dimitris.rizopoulos@med.kuleuven.ac.be, adapted by Christian Hoffmann christian@echoffmann.ch

Examples

x <- rnorm(3)
x
matrix(pasteRound("x1=", x[1], ", x2=", x[2], ", x3=", x[3], sep="",
 collapse=","),ncol=1)
matrix(pasteRound("x1=", x[1], ", x2=", x[2], ", x3=", x[3], digits=3,
 sep="$", collapse="_"),ncol=1)

cwhmisc

Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

v6.6
GPL (>= 2)
Authors
Christian W. Hoffmann
Initial release
2018-08-24, 10:40:10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.