Re: [R] reduce printing accuracy

From: Joshua Wiley <jwiley.psych_at_gmail.com>
Date: Sat, 28 May 2011 00:48:13 -0700

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/

______________________________________________
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.
Received on Sat 28 May 2011 - 07:51:28 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 28 May 2011 - 09:40:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive