I am looking for the entry that occurs prior to every first entry of a specific value in my dataset.
df: encounter mode value 1 1 a 100 2