The same is true for the words daw/raw (was said) and din/rin (also). When the preceding word ends in a consonant, the "d" version is used. When the preceding word ends in a vowel, the "r" version is used. In fact this change from d to r can be seen in other words as well, such as dami (plenty) and its adjective form marami (many).