Is there a way to export the results of a step to csv using code, not the ui? For example,
Steps to produce the output
exploratory::queryODBC(dsn = 'XX', username = 'XX', password = 'XXXX', additionalParams = '', numOfRows = 0, query = 'select * from awesometable') %>% readr::type_convert() %>%
build_model(model_func = xgboost_binary, formula = target ~ var1 + var2 + var3, nrounds = 75) %>%
prediction_binary(data = "newdata", data_frame = Score_me)
The write.csv step doesn't produce the output I want, it's just a blank csv. I suspect that newdata isn't what I need to export, but I'm not familiar enough with R to figure this out, and the export to csv option in Exploratory, while it works just fine, is manual, and I want something that'll work in code, not that I have to do over and over again w/ my mouse.