unSurvDF | R Documentation |
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")
df |
dataframe with Surv objects |
suf_lo |
Column name suffix for "lo" values. Default = "_lo" |
suf_hi |
Column name suffix for "hi" values. Default = "_hi" |
Returns dataframe with censored data converted to lo/hi format
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.