[R] How to output 0.405852702657738 as 0.405853 ?

ctu at bigred.unl.edu ctu at bigred.unl.edu
Fri Jul 11 07:23:57 CEST 2008


> round(0.405852702657738,6)
[1] 0.405853

Super
Chunhao Tu

Quoting Daren Tan <daren76 at hotmail.com>:

>
> I am confused by options("digits") and options("scipen"), which   
> should be used to output 0.405852702657738 as 0.405853 in   
> write.table ?
> _________________________________________________________________
>
>
> 	[[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