Added check for a sample value that is a not a number, e.g. "-" or "na",
then substitutes zero so rdsamp won't break;