I have dataframe d with a Boolean variable event indicating whether a certain event occurred on a given date. I want to create a new variable that indicates how many observations (days) away the closest event is.I have dataframe d with a Boolean variable even