pivot_prism.Rd
Converts bulk survival data (multiple observations per row) to individual survival data (one observation per row). Transforms this to a GraphPad PRISM compatible format, with one condition per column. Empty values are filled with NA.
pivot_prism(df)
A data.frame
object with 4 columns. Column headers
must be ("condition", "day", "dead", "censored").
Status: 1 = dead, 0 = censored.
df_prism <- pivot_prism(sample_data)