[R] specifying decimal places

Katharine Mullen kate at few.vu.nl
Mon Nov 12 11:19:29 CET 2007


Your calculations are done with a precision that depends on your machine.
I guess that you want to know how to _print_ more decimal digits.

See how many digits you print now with
getOption("digits")

Change this with, e.g.,
options(digits=12)

On Mon, 12 Nov 2007, raymond chiruka wrote:

> hie
>   how do I specify the number of decuimal places for my calulations
>    thanks
>
>  __________________________________________________
>
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list