[R] How to replace all <NA> values in a data.frame with another ( not 0) value

Muhammad Rahiz muhammad.rahiz at ouce.ox.ac.uk
Tue May 4 15:25:15 CEST 2010


000/000 returns NaN, which is no different than NA unless you want it as 
string i.e. "000/000"

Muhammad





Lanna Jin wrote:
> Try: "x[which(is.na(x)),] <- 000/000", where is  x is your data frame
>
> -----
> Lanna Jin
>
> lannajin at gmail.com
> 510-898-8525
>



More information about the R-help mailing list