R’s default output is noisy.

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00



I clean it up in my reports by:

  1. using less significant digits
  2. removing the hash marks at the begining of each line
# Printing options
library(knitr)
opts_chunk$set(comment = NA)
options(digits=0)

*note: Normally I would hide this chunk with {r, echo=FALSE}.



summary(cars)
     speed         dist    
 Min.   : 4   Min.   :  2  
 1st Qu.:12   1st Qu.: 26  
 Median :15   Median : 36  
 Mean   :15   Mean   : 43  
 3rd Qu.:19   3rd Qu.: 56  
 Max.   :25   Max.   :120  

Not perfect. But, nicer.