pasteRound {cwhmisc} | R Documentation |
Paste rounded values
pasteRound(..., digits=16, sep=" ", collapse=NULL)
... |
list of arguments to be pasted. |
digits |
Integer, argument to |
sep, collapse |
Character, arguments to |
The concatenation of formatted values
Dimitris Rizopoulos dimitris.rizopoulos@med.kuleuven.ac.be, adapted by Christian Hoffmann christian@echoffmann.ch
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)