[R] writing autocorrelation and partial auto correlation functions to a file

David Winsemius dwinsemius at comcast.net
Thu May 20 15:07:33 CEST 2010


On May 20, 2010, at 3:38 AM, nuncio m wrote:

> Dear All,
>          I am very new to T.  I need to fit a ARIMA model to my time
> series.  So I found the auto correlation functions and partial auto
> correlation function in R. Now I want to save these valuse along  
> with the
> significance levels to a file.  How to do that?.  I tried some  
> function in R
> like write.table but returns an error  "cannot coerce class "acf"  
> into a
> data.frame".  The I tried "write"
> but returned again an error "Error in cat(list(...), file, sep, fill,
> labels, append) :
>  argument 1 (type 'list') cannot be handled by 'cat'".
> Where am I going wrong

If you are just interested in getting the same information that you  
see on the console into a text file then:

?capture.output

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list