Dear all,

I'm trying to replace NA values with -9999 in one column of a data frame. I've 
tried using is.na and the testdata[testdata$onecolumn==NA] <- 9999 approach, 
but whilst neither generate errors, neither result in -9999s appearing - the 
NAs remain there!

I'd be grateful for any advice on what I'm doing wrong or any other suitable 
approaches.

Many thanks,

Steve

_________________________________________________________________

oticons.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to