powered by
Null-mutator that does not perform any operation on its input. Useful in particular with operator-wrappers such as MutatorMaybe or MutatorCombination.
MutatorMaybe
MutatorCombination
This operator has no configuration parameters.
Supported Domain classes are: p_lgl ('ParamLgl'), p_int ('ParamInt'), p_dbl ('ParamDbl'), p_fct ('ParamFct')
Domain
p_lgl
p_int
p_dbl
p_fct
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:
Mutator
mut()
muts()
dict_mutators
# preferred: mut("null") muts("null") # takes vector IDs, returns list of Mutators# long form: dict_mutators$get("null")
# long form: dict_mutators$get("null")
miesmuschel::MiesOperator -> miesmuschel::Mutator -> MutatorNull
miesmuschel::MiesOperator
miesmuschel::Mutator
MutatorNull
MutatorNull$new()
MutatorNull$clone()
Inherited methods miesmuschel::MiesOperator$help() miesmuschel::MiesOperator$operate() miesmuschel::MiesOperator$prime() miesmuschel::MiesOperator$print() miesmuschel::MiesOperator$repr()
miesmuschel::MiesOperator$help()
miesmuschel::MiesOperator$operate()
miesmuschel::MiesOperator$prime()
miesmuschel::MiesOperator$print()
miesmuschel::MiesOperator$repr()
new()
Initialize the MutatorNull object.
clone()
The objects of this class are cloneable with this method.
MutatorNull$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other mutators: Mutator, MutatorDiscrete, MutatorNumeric, OperatorCombination, dict_mutators_cmpmaybe, dict_mutators_erase, dict_mutators_gauss, dict_mutators_maybe, dict_mutators_proxy, dict_mutators_sequential, dict_mutators_unif
MutatorDiscrete
MutatorNumeric
OperatorCombination
dict_mutators_cmpmaybe
dict_mutators_erase
dict_mutators_gauss
dict_mutators_maybe
dict_mutators_proxy
dict_mutators_sequential
dict_mutators_unif
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)
Run the code above in your browser using DataLab