search for: p21466785p21466785

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

Did you mean: tp21466785p21466785
2009 Jan 14
3
Logical function to turn missing values to 0's
...atrix(data=0, ncol=ncol(x), nrow=nrow(x)) for(i in 1:nrow(x)) { for(j in 1:ncol(x)) { y[i,j] <- ifelse(x[i,j]==NA, 0, x[i,j]) }} But y returns an NA matrix. I'd appreciate any help. -- View this message in context: http://www.nabble.com/Logical-function-to-turn-missing-values-to-0%27s-tp21466785p21466785.html Sent from the R help mailing list archive at Nabble.com.