Have this result from a chisq.test in R.
rslt <- chisq.test(a$x, a$y)
Pearson's Chi-squared test
data: a$x and a$y
X-squared = 32944, df = 9, p-value < 2.2e-16
but extracting the p.value is just 0
> rslt$p.value
[1] 0
I expected to get 2.2e-16 not 0.
I also tried to unlist the rslt.
> unlist(rslt)
statistic.X-squared parameter.df p.value method
"32943.9488257678" "9" "0" "Pearson's Chi-squared test"
but I still get 0 instead of 2.2e-16.
Is there anyway to get the information from the description or the actual value instead of the shortened value?
Thanks.