> I recommend avoid loop in this case > I'm working with many files...
I must utilise a loop necessarily. > And you shall know that R is pretty smart in handling missing values. How > do you know after change NA -> 0 that 0 is from NA and not > like in 1994 row and second column. This isn't a problem, I utilise only the data that start from a definite start date. Alfredo ______________________________________________ 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.