Have: Date Time Sample no. WBC(10^3/uL) 5/12/2020 17:57:46 01a 1 5/12/2020 17:58:52 01a 2 5/13/2020 2:00:48 01a 3 5/13/2020 2:01:43 01a 4 Want: Date Time Sample no. Time Point WBC(10^3/uL) WBC avg (based on time point) 5/12/2020 17:57:46 01a Base 1 1+2/2 5/12/2020 17:58:52 01a Base 2 5/13/2020 2:00:48 01a 8 Hour 3 3+4/2 5/13/2020 2:01:43 01a 8 Hour 4 I am attempting to create a column that is able to identify the following: earliest and second earliest time points, latest/second latest time pints, AND time points in the middle as well. Then using these time points, find the mean of a number of variables (such as WBC). For ex: WBC average for the base would be 1+2, where base represents the earliest and second earliest times.
... View more