Skip to content

Commit

Permalink
change tidy evals to standard syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tmastny committed Mar 13, 2018
1 parent 2343102 commit 29ab774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/model_tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ save_filter <- function(model) {
column_names <- names(model$bestTune)
column_values <- model$bestTune
filtered <- model$pred %>%
dplyr::filter(!! rlang::parse_expr(paste(column_names, "==", shQuote(column_values), collapse = "&")))
dplyr::filter(!!rlang::parse_expr(paste(column_names, "==", shQuote(column_values), collapse = "&")))
return(filtered)
}
model$pred
Expand All @@ -78,7 +78,7 @@ add_observed <- function(agg_data, model) {
data <- save_filter(model)
observed <- data$obs[orderer(data)]
agg_data <- agg_data %>%
tibble::add_column(!!(outcome) := observed)
tibble::add_column(!!outcome := observed)
}

#' Convert (subset) of the leaderboard tibble to a list of models
Expand Down

0 comments on commit 29ab774

Please sign in to comment.