The function replaces all occurrences of the character 'i' with 'R' in the input string and returns the modified string.

[CODE]:
```python
def approx_function(input_str):
    return input_str.replace('i', 'R')
```