Error in x - upstream : non-numeric argument to binary operator