[R] How can output tables be converted to data files?
BR_email
br at dmstat1.com
Wed Apr 5 23:09:26 CEST 2017
Hi R'ers:
This code produces: 3x3 rcorr matrix, one-element vector, and 3x3
p-value matrix.
I would like to use these outputs as data files.
How can these output tables be converted to data files?
Any assistance is appreciated.
Thanks. Bruce
library(Hmisc)
mtcars5 <- mtcars[sample(1:nrow(mtcars), 5, replace=FALSE),]
X<- as.matrix(mtcars5[, c(1,2,3)])
print(X)
rcorr(as.matrix(X))
--
More information about the R-help
mailing list