I have a data set with about 15 000 rows and ten columns. I want to create a new column " difrence" by using columns " ID" and "DATE" in my data set. The "ID" includes the identity number of people the ids are repetitive. How can I create a new column the for each person, and compute the difference of time?
How can I code by R