[R] How can output tables be converted to data files?

Bert Gunter bgunter.4567 at gmail.com
Thu Apr 6 01:35:51 CEST 2017


Yes. "p" is not "P" .

Re-read the "value" section of the ?rcorr if this is not clear.

-- Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Wed, Apr 5, 2017 at 4:22 PM, BR_email <br at dmstat1.com> wrote:
> 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 at 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.



More information about the R-help mailing list