Hello everyone, I am wanting to replace an element in a matrix with NA. I have used the following code dat<-read.table(file="C:\\Documents and Settings\\....txt",header=T,row.names=1) file.show(file="C:\\Documents and Settings\\....txt") Z.matrix<-as.matrix(dat) Y<-dat[,46:63] X<-dat[1,51] dat[1,51]<-NA Whenever I use this code I get the original value when I type show(X).I run the script and type show(X) and the original value is still there.What am I doing wrong? Thank you Paul
[[alternative HTML version deleted]] ______________________________________________ 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.