Hello,

I have a data frame

> mdl.summary
                               est.coef      std.err    t.stat
intercept                  0.0011625517 0.0002671437  4.351784
aa                     -0.0813727439 0.0163727943 -4.969997
dummy1                      -0.0002534873 0.0001204000 -2.105376
dummy2              -0.0007784864 0.0001437537 -5.415417
bb                   -0.0002856727 0.0001090387 -2.619920
cc                    0.0003563825 0.0001114803  3.196820


and would like to store it to a pdf file, I use

                pdf(file = "a.pdf", paper = "a4r")
                mdl.summary
                dev.off()

to store this mdl.summary into a pdf file a.pdf. However, I can see from the 
terminal that:


> pdf(file = result2, paper = "a4r")

> mdl.summary

                               est.coef      std.err    t.stat

intercept                  0.0011625517 0.0002671437  4.351784

aa                     -0.0813727439 0.0163727943 -4.969997

dummy1             -0.0002534873 0.0001204000 -2.105376

dummy2              -0.0007784864 0.0001437537 -5.415417

bb                   -0.0002856727 0.0001090387 -2.619920

cc                     0.0003563825 0.0001114803  3.196820

> dev.off()

pdf

  2

And when I open the a.pdf, the error message says "There was an error opening 
this document. The file is already open or in use by another application." How 
could I save this data frame into a pdf file?

If I have another data frame, such as


> st = data.frame(est.aic, est.aic)

> st

    est.aic est.aic.1

1 -1654.986 -1654.986

How could I save it to a .csv file?

Thanks very much!

Cheers,

Rebecca

----------------------------------------------------------------------
This message, and any attachments, is for the intended r...{{dropped:5}}

______________________________________________
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.

Reply via email to