as_pipeop

0th

Percentile

Conversion to mlr3pipeline PipeOp

The argument is turned into a PipeOp if possible. If clone is TRUE, a deep copy is made if the incoming object is a PipeOp to ensure the resulting object is a different reference from the incoming object.

as_pipeop() is an S3 method and can therefore be implemented by other packages that may add objects that can naturally be converted to PipeOps. Objects that can be converted are for example Learner (using PipeOpLearner) or Filter (using PipeOpFilter).

Usage
as_pipeop(x, clone = FALSE)
Arguments
x

(any) Object to convert.

clone

(logical(1)) Whether to return a (deep copied) clone if x is a PipeOp.

Value

PipeOp x or a deep clone of it.

See Also

Other Graph operators: %>>%, as_graph, assert_graph, assert_pipeop, greplicate, gunion

Aliases
  • as_pipeop
Documentation reproduced from package mlr3pipelines, version 0.1.1, License: LGPL-3

Community examples

Looks like there are no examples yet.