Re: [R] Confused: Looping in dataframes

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

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_at_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.
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive