R/misc-utilities.R
replace_nan.Rd
Replance NaN with NA
replace_nan(x)
Vector (can be used for a data frame column)
Vector with NaNs replaced with NAs
replace_nan(c(0, 1, 2, NaN)) #> [1] 0 1 2 NA