Re: [R] Controlling the precision of the digits printed

2011-11-15 Thread Kevin Burton
t.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Kevin Burton > Sent: Tuesday, November 15, 2011 8:19 AM > To: r-help@r-project.org > Subject: [R] Controlling the precision of the digits printed > > Has anyone come across the right combinations to print a limited >

Re: [R] Controlling the precision of the digits printed

2011-11-15 Thread William Dunlap
-help-boun...@r-project.org] On > Behalf Of Kevin Burton > Sent: Tuesday, November 15, 2011 8:19 AM > To: r-help@r-project.org > Subject: [R] Controlling the precision of the digits printed > > Has anyone come across the right combinations to print a limited number of > dig

Re: [R] Controlling the precision of the digits printed

2011-11-15 Thread Joshua Wiley
Hi Kevin, I am not sure you will find anything other than manual tweaking, that will vary between no decimals for integers, some for small fractions, and scientific for very small. You can also look at: ?round ?format. If this is for code/a report, you could make any formatting you wanted with

[R] Controlling the precision of the digits printed

2011-11-15 Thread Kevin Burton
Has anyone come across the right combinations to print a limited number of digits? My trial and error approach is taking too much time. Here is what I have tried: > op <- options() > a <- c(1e-10,1,2,3,.5,.25) > names(a) <- c("A", "B", "C", "D", "E", "F") > # default > a A B