cvt_fac_num.Rd
Convert a dataframe with factor and numerical to numerical with dummy code.
cvt_fac_num(X, max_level = 7)
X | A dataframe |
---|---|
max_level | maximum number of levels, i.e. if the unique value of a column less than max_level, will set to be factor. By default is 7. |
a list contain checked matrix X and type of values for each output.