[R] Setting Number of Displayed Digits

Rui Barradas ruipbarradas at sapo.pt
Wed Aug 8 00:11:00 CEST 2012


Hello,

function summary.data.frame does have a 'digits' argument with a default 
set to
max(3, getOption("digits")-3)

If you need more digits in your summary, call

summary(object, digits = getOption("digits"))

Hope this helps,

Rui Barradas

Em 07-08-2012 22:30, Rich Shepard escreveu:
>   Some chemicals have concentrations at or below the method detection 
> limit
> (MDL; 'less-thans') of 0.005 mg/L. When I look at the data frame that 
> is how
> the concentration is displayed. But, when I ask for a summary() of 
> that data
> frame column only 0 is displayed.
>
>   How can I adjust the number of digits displayed by functions such as
> summary()?
>
> Rich
>
> ______________________________________________
> 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