[R] error message with dat

From: Paul Adams <pma3622_at_yahoo.com>
Date: Fri, 06 Jun 2008 21:56:24 -0700 (PDT)

Hello everyone,
I have two problems which I am unable to solve : 1.I am trying to add the  row labels (g1-g2000) to the very left of a data table. The data table is 2000 rows  by 62 columns.I have used the following code. read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1) rowname(dat) <- paste("g", c(1:nrow(dat)), sep="") file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt") The error message I get is "error in nrow(dat):object "dat" not found 2.I am also trying to populate a scatter plot with data from two columns which are 2000 values

long.I have tried the following code:
read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1)
file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1..txt")
plot(50,1500,type='p',xlab='normal',ylab='tumor',main='Tumor sample vs.Normal Sample-2000genes')
plot(50,1500,type='p',xlab='normal1',ylab='normal2',main='Two normal samples--first 20 genes',pch=15,col='blue') plot(dat(,1), dat(,2))
I get the following error message  "error in plot (dat(,1),dat(,2)  could not find function dat I am not sure how I am  suppossed to use function dat that is where and how to define it to the table? Any help would be appreciated.
	[[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 Sat 07 Jun 2008 - 05:02:43 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 Sat 07 Jun 2008 - 12:30:38 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