The function replaces every occurrence of the letter 'n' in the input string with the letter 'R'.

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