Could you show what you want nomotionx to be at the end?
Usually, readable and safe R code doesn't mix variables' names and values. What task is this part of? If you're new to R, we could tell you an easier way to do what you want. A reproducible example (reprex) would make it easy for us to help you: