I have some observations in a dataframe that are NaNs that I want to replace with NA_real_ to run additional calculations. I've found using
mutate(var = replace_na(var, NA_real_)) works, but I can't find any documentation for
replace_na() saying this should since it is supposed to only replace NA/NA_real_ with another value you specify.
Can someone verify the code under the hood of
replace_na() also replaces NaN as well? Or is this just some anomaly that it's working for me.