Re: [R] Saving the ouput data

2014-05-18 Thread jwd
Or you can try help(sink). JWDougherty __ R-help@r-project.org mailing list 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, reprodu

Re: [R] Saving the ouput data

2014-05-17 Thread arun
Hi, Using the example data from ?rcorr library(Hmisc) library(Hmisc)     x <- c(-2, -1, 0, 1, 2) y <- c(4,   1, 0, 1, 4) z <- c(1,   2, 3, 4, NA) v <- c(1,   2, 3, 4, 5) rho <- rcorr(cbind(x,y,z,v)) #you could use ?capture.output  capture.output(rho, file="file1.txt") #or may