I have the following data frame:
df <- structure(list(patient = c("k2-01-003", "k2-01-008"), y_start = c(0.292, 0.048), visit_st