
Discretize columns of a tibble and append the resulting columns
discretize_tbl_cols.RdDiscretize the columns in a pheno tibble that belong to the features of the International Prognostic Index (IPI) into binary indicator columns by comparing them to cutoff values and append them to the pheno tibble.
Arguments
- tbl
tibble.
- col_names
character vector. Discretize the columns in
tblthat have these names.- cutoffs
numeric vector of the same length as character vector. The cutoff values corresponding to the columns in
col_names.- gl
character vector of the same length as
col_namesholding ">" and "<" entries. Discretize via greater (> cutoffs) or less (< cutoffs). Default isNULL, in which case all columns are discretized via> cutoffs.