thanks Berend, that's a very smart to do it :) ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Error-on-using-lag-function-tp1399935p1415584.html Sent from the R help mailing list archive at Nabble.com.