I am trying to gather dates from a dataset using the first.variable and last.variable from SAS. Here is the code to create a reproducible example:
data exampl