Null-mutator that does not perform any operation on its input. Useful in particular with operator-wrappers such as MutatorMaybe or MutatorCombination.

Configuration Parameters

This operator has no configuration parameters.

Supported Operand Types

Supported Param classes are: ParamLgl, ParamInt, ParamDbl, ParamFct

Dictionary

This Mutator can be created with the short access form mut() (muts() to get a list), or through the the dictionary dict_mutators in the following way:

# preferred:
mut("null")
muts("null")  # takes vector IDs, returns list of Mutators

# long form:
dict_mutators$get("null")

Super classes

miesmuschel::MiesOperator -> miesmuschel::Mutator -> MutatorNull

Methods

Inherited methods


Method new()

Initialize the MutatorNull object.

Usage


Method clone()

The objects of this class are cloneable with this method.

Usage

MutatorNull$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

mn = mut("null")
p = ps(x = p_int(-5, 5), y = p_dbl(-5, 5), z = p_lgl())
data = data.frame(x = rep(0, 5), y = rep(0, 5), z = rep(TRUE, 5))

mn$prime(p)
mn$operate(data)
#>   x y    z
#> 1 0 0 TRUE
#> 2 0 0 TRUE
#> 3 0 0 TRUE
#> 4 0 0 TRUE
#> 5 0 0 TRUE