[R] Use dump or write? or what?

Matt Curcio matt.curcio.ri at gmail.com
Mon Aug 1 15:11:14 CEST 2011


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.ri at 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.ri at gmail.com
>



-- 


Matt Curcio
M: 401-316-5358
E: matt.curcio.ri at gmail.com



More information about the R-help mailing list