On Sun, Dec 2, 2012 at 6:46 PM, Felipe Carrillo <mazatlanmex...@yahoo.com> wrote: > Works with the small dataset (2 years) but I get the error message with the > whole dataset (12 years of data). I am going to have > to check what's wrong with it...Thanks
Off the cuff guess: there's a NA in Total so max(Total) is NA which throws a wrench in `==`. MW ______________________________________________ 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.