Hey, 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: function(x) { for(i in 1:length(x)) { print(names(x[i])) print(myets(x[[i]])) } } 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?? Phani -- A. Phani Kishan 3rd Year B.Tech Dept. of Computer Science & Engineering IIT MADRAS Ph: +919962363545 [[alternative HTML version deleted]] ______________________________________________ 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.