[R] a quick question about "format()"

runner sunnyside500 at gmail.com
Tue Sep 18 21:56:57 CEST 2007


In the documentation of 'pairs'(package:graphics), within the last example,
it reads: 

format(c(r, 0.123456789), digits=3)[1]

Why not simple use: format(r, digits=3)? What is the difference?

Thanks.
-- 
View this message in context: http://www.nabble.com/a-quick-question-about-%22format%28%29%22-tf4476762.html#a12764903
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list