HI, formatC() may work for you. summary(x,digits=5) #may not work here. I tried this within a list. For some of the list members, this is not working. summary(list12[[5]],digits=max(7)) # Min. 1st Qu. Median Mean 3rd Qu. Max. # 1.0 1.0 2.5 3.2 5.0 7.0
formatC(summary(list12[[5]]),format="f",digits=7) # Min. 1st Qu. Median Mean 3rd Qu. Max. #1.0000000 1.0000000 2.5000000 3.2000000 5.0000000 7.0000000 A.K. ----- Original Message ----- From: Rich Shepard <rshep...@appl-ecosys.com> To: r-help@r-project.org Cc: Sent: Tuesday, August 7, 2012 3:22 PM Subject: [R] Setting Number of Displayed Digits 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@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. ______________________________________________ R-help@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.