hello, I wrote a foreach loop containing "where clauses". R indicates an error in the compilation of the "where clause". Could you please tell me why not right?
foreach (series. combine = c)%:% when (mydata [3] = u [1]) % Dopar% (mydata [5] / sum (mydata [5])) L 'error reported by R is: Error: unexpected '=' in "foreach (series. Combine = c)%:% when (mydata [3] =" many thanks in advance Martina [[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.