Conversion to mlr3pipeline PipeOp
The argument is turned into a
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
as_pipeop(x, clone = FALSE)
any) Object to convert.
logical(1)) Whether to return a (deep copied) clone if
xis a PipeOp.
x or a deep clone of it.