I am currently working with data in R. My dataset looks like this (except with about 3 million observations):
Current structure of data
And I have two objectiv