Subj Trial Time
1 A 1 250
2 A 2 250
3 A 3 280
4 B 1 250
5 B 2 270
6 B 3 290
Above is an example of the data I am working with. I have different subjects (Subj) performing the same set of trials (Trial). Unfortunately, when trial event happen in rapid succession, my equipment will print the same time values (see Time column for rows 1 and 2).
I cannot have the same subject have duplicate time values, HOWEVER, it is okay for different subjects to have the same time values. Thus, I need a way to conditionally change duplicates such that ONLY time duplicates within a particular subject are changed.
Ideally, I'd like to change the above example to something like below:
Subj Trial Time
1 A 1 250
2 A 2 250.5
3 A 3 280
4 B 1 250
5 B 2 270
6 B 3 290
Any recommendations on how I might be able to accomplish this?
Thanks!