Skip to content

Commit 6b27c0b

Browse files
changes in doc
1 parent 89de645 commit 6b27c0b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

R/PipeOpRenameColumns.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
#' The parameters are the parameters inherited from [`PipeOpTaskPreproc`], as well as:
3131
#' * `renaming` :: named `character` | `function`\cr
3232
#' Takes the form of either a named `character` or a `function`.
33-
#' Named `character` vector. The names of the vector specify the old column names that should be
34-
#' changed to the new column names as given by the elements of the vector. Initialized to the empty
35-
#' character vector.
36-
#' `function`. Specifies how the column names should be changed to new column names. To choose columns use the
37-
#' `affect_columns` parameter. No function is initialized.
33+
#' For a named `character` vector the names of the vector elements specify the
34+
#' old column names and the corresponding element values give the new column names.
35+
#' Initialized to an empty character vector.
36+
#' A `function` specifies how the old column names should be changed to the new column names.
37+
#' To choose columns use the `affect_columns` parameter. No function is initialized.
3838
#' * `ignore_missing` :: `logical(1)`\cr
3939
#' Ignore if columns named in `renaming` are not found in the input [`Task`][mlr3::Task]. If this is
4040
#' `FALSE`, then names found in `renaming` not found in the [`Task`][mlr3::Task] cause an error.
@@ -60,9 +60,9 @@
6060
#' pop = po("renamecolumns", param_vals = list(renaming = c("Petal.Length" = "PL")))
6161
#' pop$train(list(task))
6262
#'
63-
#' pop = po("renamecolumns",
63+
#' pof = po("renamecolumns",
6464
#' param_vals = list(renaming = function(colnames) {sub("Petal", "P", colnames)}))
65-
#' pop$train(list(task))
65+
#' pof$train(list(task))
6666
#'
6767

6868
PipeOpRenameColumns = R6Class("PipeOpRenameColumns",

man/mlr_pipeops_renamecolumns.Rd

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)