This is sometimes possible with some other assumptions. Here's a small example using arithmetic in base 2.
Suppose $R=2^5=32$ and each of $X$, $Y$ and $Z$ is an integer between $0$ and $31$. Then the first five bits (reading from the right) of arrayPos tell you $X$, the next five $Y$ and the last five $Z$. Essentially, you are packing three five bit strings in a 15 bit string.
This example works because $R$ and the unknowns are integers. You might be able to adapt it for your purposes by using fractions with a fixed (large) denominator.