replaceNaN_byname function

Replace NaN values with a value