powered by
Converts Surv objects in a dataframe to "lo" (i.e., lower) and "hi" (i.e., upper) values. The user can specify their own values or use the defaults.
unSurvDF(df, suf_lo = "_lo", suf_hi = "_hi")
Returns dataframe with censored data converted to lo/hi format
dataframe with Surv objects
Column name suffix for "lo" values. Default = "_lo"
Column name suffix for "hi" values. Default = "_hi"
makeSurvDF, unSurv , impute, imputeDF, saveDF,
makeSurvDF
unSurv
impute
imputeDF
saveDF
df <- dataCensored[dataCensored$station=="CB3.3C", ][1:20,] colnames(df) # Default values df2 <- unSurvDF(df) colnames(df2) # User values df3 <- unSurvDF(df, "_LOW", "_HIGH") colnames(df3)
Run the code above in your browser using DataLab