Re: [R] Applying forecast functions to columns in a data frame

From: David Winsemius <>
Date: Tue, 22 Jun 2010 10:41:35 -0400

On Jun 22, 2010, at 10:32 AM, Henrique Dallazuanna wrote:

> Try this:
> lapply(DF, auto.arima)

I cannot comment on the relative merits of auto.arima or the forecast function, but I did notice that earlier today that Gabor Grothendieck (who, I suspect, could comment knowledgeably) mentioned the latter's use in a similar context:
> On Tue, Jun 22, 2010 at 11:26 AM, phani kishan
> <>wrote:
>> Hey,
>> I have a list of 30 odd time-series (products) in columns of a data-
>> frame.
>> I want to apply time-series forecasting functions across all the
>> columns of
>> the data-frame in order to determine which is the best model to use.
>> How do I go about this?
>> Phani


David Winsemius, MD
West Hartford, CT

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 22 Jun 2010 - 14:44:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 Jun 2010 - 15:40:34 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive