We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d5695f commit bd94245Copy full SHA for bd94245
tests/testthat/test_pipeop_renamecolumns.R
@@ -13,6 +13,7 @@ test_that("basic properties", {
13
14
test_that("renaming works", {
15
task = mlr_tasks$get("iris")
16
+ task$cbind(data.table(Petal.Width = as.character(1:150))) # need a char column that we can turn into the 'name'-col
17
op = PipeOpRenameColumns$new(param_vals = list(renaming = c("Petal.Length" = "PL")))
18
train_out1 = op$train(list(task))[[1L]]
19
predict_out1 = op$predict(list(task))[[1L]]
0 commit comments