@pauamma There is that recommendation that if the preceding word ends with a vowel or with the letters W and Y (because they end sounding like a vowel too) we should use the "r", i.e., raw, rin, riyan, etc., instead the "d". However, that is not strictly followed.
I believe that the reason behind that recommendation is only to make the word sequence easier to pronounce. Not following the recommendation does not lead to an error in grammar. So, don't worry about it and I assure you that neither do we. Feel free to use whichever makes it easier for you to pronounce after a word.
Just keep in mind that if the words have a prefix, you have to make adjustments depending on which word is used. For example:
NANdito = NArito
NANdoon = NAroon
NANdiyan = NAriyan