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]]
ctu at bigred.unl.edu
2008-Jul-11 05:23 UTC
[R] How to output 0.405852702657738 as 0.405853 ?
> 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. >