[R] reduce printing accuracy

Joshua Wiley jwiley.psych at gmail.com
Sat May 28 09:48:13 CEST 2011


Hi Alex,

See ?options  in particular the "digits" section.  You can (per
session) edit this by typing:

options(digits = 3)

or whatever number you want.  To make this more permanent, create a
.Rprofile that alters the default digits.

HTH,

Josh

On Sat, May 28, 2011 at 12:36 AM, Alaios <alaios at yahoo.com> wrote:
> Dear all,
> I would like to print a few values with less digits than the default.
> How I can reduce how many digits are printed ?(warning: not the real integer resolution but what is shown in screen)
>
>
> Best Regards
> Alex
>
> ______________________________________________
> 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.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/



More information about the R-help mailing list