Thank you for your answer. Perhaps I didn't state my problem effectively. I am trying to compare two observations by group. For example... Group A - Customer 123 and Group B - Customer 543: obs cust_num product date_of_purchase Discount 1 123 tote , Yes 2 123 scarf 2018-03-22 Yes 3 543 purse 2017-12-21 No 3 543 purse 2018-03-07 Yes How would I compare the observations with the same customer (group)? If cust 123 first date is missing, and last date present then summary = "First Date Missing" or If Cust 543 first product is the same as last product, then summary = "Matching" For each variable (80 variables) I will need to compare first and last date and put as summary - Matching, Both Missing, First Missing, Last Missing, and etc... Hope this clarifies what I am trying to accomplish.
... View more