[R] error in dat

From: Paul Adams <pma3622_at_yahoo.com>
Date: Sun, 15 Jun 2008 23:54:42 -0700 (PDT)


Hello everyone,
I have the following code which keeps giving me an error. The code is:
dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\eisen.txt",header=T,row.names=1,blank.lines.skip=F,na..strings="NA") dimnames(dat)((1)) <-as.character(dat(,1)) dat<-dat(,-1)
dat<-as.data.frame(dat)

file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\eisen.txt")
ann<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\eisenClasses.txt",header=T)
file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\eisenClasses.txt")
cl<-as.character(ann[,2])
dat<-dat[,cl]
gc<-cl(1:19)
act<-cl(20:39)
x<-as.numeric(dat(2000,gc))
y<-as.numeric(dat(2000,act))
x<-x(!is..na(x))
y<-y(!is.na(y))

xy.list<-list(x,y)
boxplot(xy.list,col=c("red","blue"),main="Gene 2000") The error is:   "error in eval .with.vis(expr, envir, enclos)  : could not find function "dat"
I do not understand what this error is? Also is there a command to get a more verbose explanation of the error Any help would be appreciated
Paul
      
	[[alternative HTML version deleted]]


______________________________________________

R-help_at_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. Received on Mon 16 Jun 2008 - 06:57:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 16 Jun 2008 - 09:30:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive