It depends on what information you want to save and how the
program on the other end needs it.

For the save version I would at least use ascii = TRUE to get it
in a more readable fashion.

Look at

file.show("mult_test.dat")
file.show("mult.out")  # but use ascii=TRUE on your save statement.

to see what you are getting.

Other possibilities are to use R2HTML or XML packages to output
to HTML or XML.   You might want to handle the various components
of Dcirec separately.  To see what's inside:

   unclass(Dcirec)
   str(Dcirec)
   dput(Dcirec)

and use cat statements to output the components in the format of
your choice possibly in conjunction with sprintf.


On 7/23/06, Nair, Murlidharan T <[EMAIL PROTECTED]> wrote:
> I am trying to find the best way to save the follwoing object I am creating
>
> library(multcomp)
> data(recovery)
> Dcirec<-simint(minutes~blanket, data=recovery, conf.level=0.9, 
> alternative="less")
>
> I am probably not doing it the most efficient way I think.
> Here is what I am doing
>
> a<-print(Dcirec)
> write(a,file="mult_test.dat", append=T)
> or
> save(Dcirec, file="mult.out")
>
> Which is the best way to save it, so that I can access its contents outside 
> the R environment?
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to