Kaplan-Meier graph: is my input data correctly structured for analysis in R?