For each column specified, censored data are detected by the presence of the symbol < . This function removes all censored data in the specified columns. keep_cens=TRUE assigns the logicical test result (presence of absence of symbol <) to a new column, to keep track of the original censored data.

uncensored(df = NULL, cols = c(NULL), keep_cens = TRUE)

Arguments

df

a data.frame.

cols

a vector of character.

keep_cens

a boolean. If TRUE, assigns the logicical test result (presence or absence of symbol <) to a new column called .col_censored

Value

The return value, if any, from executing the function.

Examples

if (FALSE) { # \dontrun{
 data(censored_data)
 uncensored(censored_data)
} # }