powered by
pasteRound(..., digits=16, sep=" ", collapse=NULL)
round
paste
x <- rnorm(3) x pasteRound("x1=", x[1], ", x2=", x[2], ", x3=", x[3], sep="", collapse=",") pasteRound("x1=", x[1], ", x2=", x[2], ", x3=", x[3], digits=3, sep="", collapse=",")
Run the code above in your browser using DataLab