Re: [R] see NA

2012-02-13 Thread David Winsemius
On Feb 13, 2012, at 4:51 AM, Soheila Khodakarim wrote: Dear All I want to chose just spacial columns in R. (read table) data1<- read.table("/home/Documents/data.txt",header=F,sep = "\t", as.is =F) data.2<-data1[sub.data[,1],] What is "sub.data"? are you migrating to R from a language wher

Re: [R] see NA

2012-02-13 Thread Uwe Ligges
GHard to tell given the file is not available nor do we see the first lines of it. Uwe Ligges On 13.02.2012 10:51, Soheila Khodakarim wrote: Dear All I want to chose just spacial columns in R. (read table) data1<- read.table("/home/Documents/data.txt",header=F,sep = "\t", as.is =F) data.2<-d

[R] see NA

2012-02-13 Thread Soheila Khodakarim
Dear All I want to chose just spacial columns in R. (read table) data1<- read.table("/home/Documents/data.txt",header=F,sep = "\t", as.is =F) data.2<-data1[sub.data[,1],] The dimension of data.2 is correct but my data are transformed NA head(data.2) V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12