I removed the ceiling and it works! Thanks a heap, that was driving me crazy! -- View this message in context: http://n4.nabble.com/Problem-with-Loops-tp1794288p1801623.html Sent from the R help mailing list archive at Nabble.com.