Displaying 1 result from an estimated 1 matches for "tp21301527p21301527".
2009 Jan 05
2
prblem with NA
...data<-read.table("fileName.txt", header=F, sep='\t')
X=data
for(i in ncol)
{
for(j in nrow)
{
if(data[i,j]<=100) {X[i,j]=1}
if(data[i,j]>100) {X[i,j]=0}
if(is.na(data[i,j])) {X[i,j]=NA}
}
}
Thanks
--
View this message in context: http://www.nabble.com/prblem-with-NA-tp21301527p21301527.html
Sent from the R help mailing list archive at Nabble.com.