powered by
char_to_num is for transfering character variables which are actually numerical numbers containing strings to numeric.
char_to_num
char_to_num(dat, note = TRUE, ex_cols = "date$|id$|time$|DATA$|ID$|TIME$")
A data frame
Logical, outputs info. Default is TRUE.
A list of excluded variables. Regular expressions can also be used to match variable names. Default is NULL.
A data.frame
# NOT RUN { dat_sub = lendingclub[c('dti_joint', 'emp_length')] str(dat_sub) #variables that are converted to numbers containing strings dat_sub = char_to_num(dat_sub) str(dat_sub) # }
Run the code above in your browser using DataLab