Behaviour
Returns an array in which the occurrences of a number in input array are replaced with another number.
Parameters
Return type
Binary-array.
Examples
Replace all the occurences of number 1 with 2 in a measure.
oph_replace('OPH_DOUBLE','OPH_DOUBLE',measure,1,2)
Operation type
Reduce.
| Argument name | Type | Mandatory | Values | Default | Min/Max-value | Min/Max-times |
|---|---|---|---|---|---|---|
| input measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’” | “1” / “1” | ||
| output measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’” | “1” / “1” | ||
| measure | “binary-array” | “yes” | “1” / “1” | |||
| old_value | “double” | “no” | “0” | “0” / “1” | ||
| new_value | “double” | “no” | “suppress the item” | “0” / “1” |