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
>
-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
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
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
4 matches
Mail list logo