My question is that how to avoid NaN value to be changed as well when you want to change NA Value :
I used this code but it'll change both :
dataframe[is.na(dataframe)] <- 0
and I saw this link and get that the reason why this happen is :
is.na(NaN)
[1] TRUE
but I really want to make a different between these two so I used this to change the NaN and then use the previous code
dataframe[is.nan(dataframe)] <-"NAN"
I get this error:
default method not implemented for type 'list'
so how should I do this ?
thank you in advance,