[R] Use dump or write? or what?

jim holtman jholtman at gmail.com
Mon Aug 1 14:47:28 CEST 2011


Can you define better exactly what you what to do with the data.  I
would suggest that you keep each of the outputs (objects) of the test
in a 'list' that way you can access each one and do what you need.
You can also 'save' the list and later 'load' it into another session.

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
>
> ______________________________________________
> R-help at 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.
>



-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?



More information about the R-help mailing list