> fcoalesce(c(NaN, NaN), c(0,NA_real_))
[1] 0 NaN
I realize this is a very edge case, but the current implementation doesn't support simple consistent processing. since NA_real_ and NaN are not equal, i.e. is.nan(NA_real) is FALSE, i think this should apply the conversion. As it currently stands, the only workaround I can think of is to explicitly do a second pass through the data to explicitly check for and handle this condition
I realize this is a very edge case, but the current implementation doesn't support simple consistent processing. since
NA_real_andNaNare not equal, i.e.is.nan(NA_real)isFALSE, i think this should apply the conversion. As it currently stands, the only workaround I can think of is to explicitly do a second pass through the data to explicitly check for and handle this condition