search for: elder1

Displaying 1 result from an estimated 1 matches for "elder1".

Did you mean: elder
2014 Jan 19
5
how to replace <NA> values
Dear R community   I have a large data set contain some empty cells. Because of that,  may be I am wrong, <NA> values are produced. Now I want replace both empty and <NA> values with zero.   Elder1 <- data.frame(   ID=c("ID1","ID2","ID3","ID6","ID8"),   age=c(38,35,"",NA,NA)) Output I am expecting   ID   age ID1  38 ID2  35 ID3  0 ID6  0 ID8  0   In advance I thank your help. -- View this message in context: http://r.789695.n4....