title: Changing significance notation in R
body: <p>R has certain significance codes to determine statistical significance. In the example below, for example, a dot <code>.</code> indicates significance at the 10% level (see sample output below). </p>
  
  <p>Dots can be very hard to see, especially when I copy-paste to Excel and display it in Times New Roman.</p>
  
  <p>I'd like to change it such that:</p>
  
  <ul>
  <li><code>*</code> = significant at 10%</li>
  <li><code>**</code> = significant at 5%</li>
  <li><code>***</code> = significant at 1%</li>
  </ul>
  
  <p>Is there a way I can do this?</p>
  
  <pre><code>&gt; y = c(1,2,3,4,5,6,7,8)
  &gt; x = c(1,3,2,4,5,6,8,7)
  &gt; summary(lm(y~x))
  
  Call:
  lm(formula = y ~ x)
  
  Residuals:
      Min      1Q  Median      3Q     Max 
  -1.0714 -0.3333  0.0000  0.2738  1.1191 
  
  Coefficients:
              Estimate Std. Error t value Pr(&gt;|t|)    
  (Intercept)   0.2143     0.6286   0.341  0.74480    
  x             0.9524     0.1245   7.651  0.00026 ***
  ---
  Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
  
  Residual standard error: 0.8067 on 6 degrees of freedom
  Multiple R-squared:  0.907, Adjusted R-squared:  0.8915 
  F-statistic: 58.54 on 1 and 6 DF,  p-value: 0.0002604
  </code></pre>