Questions
It would seem that is.nan doesn't actually have a method for data frames, unlike is.na. So, let's fix that!
is.nan
is.na
is.nan.data.frame <- function(x) do.call(cbind, lapply(x, is.nan)) data123[is.nan(data123)] <- 0
~ Answered on 2013-08-09 08:46:22