I would like to do this in R
My dataframe looks like this
lab value1 value2 wbc 7.0 6 wbc 6.5 3 rbc 3.5 2 rbc 4.0 2 plt 100 1 plt 120