Greetings all, Thanks for all your help so far. Let me give a better idea of what I am doing. I have hundreds of files that I need to plow thru with a t-test and correlation test. BTW, 'tempA' and tempB' are simply columns of numbers from a gene-chip experiment that spits out dna 'amounts'. So I have set up a loop to read the files and carry out the tests but need to save it for later inspection (and Jim H-you are probably right, for later inspection). By inspection I mean I don't know what I want to do with it yet, Remember: "That's why they call it Research."
So it seems that 'save/load' might be a good alternative for my work. Any suggestions, M On Sun, Jul 31, 2011 at 11:41 PM, Matt Curcio <matt.curcio...@gmail.com> wrote: > Greetings all, > I am calculating two t-test values for each of many files then save it > to file calculate another set and append, repeat. > But I can't figure out how to write it to file and then append > subsequent t-tests. > (maybe too tired ;} ) > I have tried to use "dump" and "file.append" to no avial. > > ttest_results = tempfile() > > two_sample_ttest <- t.test (tempA, tempB, var.equal = TRUE) > welch_ttest <- t.test (tempA, tempB, var.equal = FALSE) > > dump (two_sample_ttest, file = "dumpdata.txt"", append=TRUE) > ttest_results <- file.append (ttest_results, two_sample_ttest) > > Any suggestions, > M > -- > > > > Matt Curcio > M: 401-316-5358 > E: matt.curcio...@gmail.com > -- Matt Curcio M: 401-316-5358 E: matt.curcio...@gmail.com ______________________________________________ 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, reproducible code.