powered by
log_trans is for logarithmic transformation
log_trans
log_trans( dat, target, x_list = NULL, cor_dif = 0.01, ex_cols = NULL, note = TRUE )log_vars(dat, x_list = NULL, target = NULL, cor_dif = 0.01, ex_cols = NULL)
log_vars(dat, x_list = NULL, target = NULL, cor_dif = 0.01, ex_cols = NULL)
A data.frame.
The name of target variable.
A list of x variables.
The correlation coefficient difference with the target of logarithm transformed variable and original variable.
Names of excluded variables. Regular expressions can also be used to match variable names. Default is NULL.
Logical, outputs info. Default is TRUE.
Log transformed data.frame.
# NOT RUN { dat = log_trans(dat = UCICreditCard, target = "default.payment.next.month", x_list =NULL,cor_dif = 0.01,ex_cols = "ID", note = TRUE) # }
Run the code above in your browser using DataLab