At 10:11 05/01/01 +0100, you wrote:
Hi! I want to plot some numerical results in a graphic. I use the function text(x,y, result). What i want is to limit the precision of the numbers stored in result to 2 decimal places for layout reasons. How to do it?? thx Witek
Use the function round(), e.g.:
pi
[1] 3,141593
round(pi, 2)
[1] 3,14 EP -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._