I have a few dates, and all that happened after 2005-06-12 should be recoded to 2005-06-12
# Example how the data looks like:
data <- data.frame(review_date = as.Date(c("2006-04-11","2001-01-01", "2005-06-12", "2007-07-09")))
Basically, desired output is that dates 2006-04-11 and 2007-07-09 become 2005-06-12. Thnx.