# NOT RUN {
set.seed(313)
examples <- matrix(exp(rnorm(40)), ncol = 2)
examples <- as.data.frame(examples)
rec <- recipe(~ V1 + V2, data = examples)
log_trans <- rec %>%
step_log(all_predictors())
log_obj <- prep(log_trans, training = examples)
transformed_te <- bake(log_obj, examples)
plot(examples$V1, transformed_te$V1)
tidy(log_trans, number = 1)
tidy(log_obj, number = 1)
# }
Run the code above in your browser using DataLab