David:
If I may, I was successful in writing csv files for rcorr, n, but not pvalue, which is empty. I set digits=5, thinking the small numbers might not show with default setting.
Here's the code I used. Do you see a bug?
Thanks. Bruce

Y <- rcorr(as.matrix(X))
digits=5
write.csv(Y$p, file = "c:/R_data/pvalue.csv",row.names=FALSE, na="") - empty
write.csv(Y$n, file = "c:/R_data/nsize.csv",row.names=FALSE, na="") - okay
write.csv(Y$r, file = "c:/R_data/rcorr.csv",row.names=FALSE, na="") - okay

David L Carlson wrote:
Y <- rcorr(as.matrix(X))

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to