title: How to make decimal digits of chisq.test four numbers ?
body: <pre><code>&gt; options(digits=5)
  &gt; x&lt;-c(139,138,112,111)
  &gt; y&lt;-c(0.3,0.25,0.2,0.25)
  &gt; chisq.test(x,p=y)
  
  Chi-squared test for given probabilities
  
  data:  x 
  X-squared = 5.1667, df = 3, p-value = 0.16
  </code></pre>
  
  <p>The command <code>options(digits=4)</code>  can not make the digits output of chisq.test four numbers,how can i get p-value = 0.15997?</p>