How to assign the NA values in right index ?

Your question is too vague to answer.
Make a reprex ?
link