Updated R code and Python code to handle floating-point missing values