So my question isn\'t about R code per se, it is more of a code structure or logic problem. Say I have travel data from every night in 2017 for a group of people.