Hi Raro,

There are several possibilities depending upon how you are mapping the inputs. What is your intent with input values in the range (-0.8, -0.7)?

- If the ranges of input values are fixed width (of 0.2) for each new index mapping and the domain of your input is [-1.0, ∞) then you can use an
`apply`

to obtain a new attribute using an algebraic expression:

`apply(INPUT, new_index, floor(5 * (original_val + 1.0)))`

This works for

```
[-1.0, -0.8] --> 0,
(-0.8, 0.6] --> 1,
(-0.6, 0.4] --> 2,
etc.:```
;
* If you have a small number of variable width mapping indexes you can use `iif`
In this case, I did not know how you wanted to handle (-0.7,-08), so I used `null`. This will also set each input value < -1.0 to also be null.
```

```
apply(INPUT, index, iif(original_val>=-1.0 and original_val <= -0.8,
0,
iif(original_val > -0.7 and original_val <= -0.5,
1,
null)));
```

```
* If you have a large number of varying width mappings, then you might want to look at https://github.com/Paradigm4/stream/blob/master/r_pkg/vignettes/ranges.Rmd
Thanks.
```