ifelse(ave(signals, dates , FUN=cumsum) = 1, 1, 0) ----- Anna Lippel -- View this message in context: http://n4.nabble.com/filtering-signals-per-day-tp1577044p1577102.html Sent from the R help mailing list archive at Nabble.com.