Re: [R] Confused: Looping in dataframes

From: phani kishan <>
Date: Fri, 25 Jun 2010 18:04:48 +0530

I only got the output once cuz I was returning from the function at the end of one loop.
I set that right and I have printed the values.

function being used by me now is:

for(i in 1:length(x))


where myets is my customized exponential smoothing model. However the problem is that if I run my myets function individually on each of the SKU's I get values of MAPE, MSE etc. However by running the above loop I dont get the values. How do I store the values for me to look at them later?

There are minor changes (not significant) in the values of parameters from applying the above function as opposed to lapply. Why could it be so??


A. Phani Kishan
3rd Year B.Tech
Dept. of Computer Science & Engineering
Ph: +919962363545

	[[alternative HTML version deleted]]

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 25 Jun 2010 - 12:36:35 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 Fri 25 Jun 2010 - 12:50:35 GMT.

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

list of date sections of archive