Compute R using a vector of quantiles
Pass r directly into updateUV