I have microarray data with gene names in the first column, gene id in the
second and the expression data in the remaining columns.  When trying use
read.table I get the error, . . . "more columns than column names".  Is
there any way to keep both columns of "names" without having to discard one.
or the other?  The raw data is read from a text file and is in the form
mitogen-activated protein kinase 3      1000_at 946     1928.8  1504.9  722.5   
873.9
836.9   1294.3  631.1   606     1126.6  841.2   833.6   689.6   1256.9  685.8   
755.3   974.8
where, mitogen-activated protein kinase 3 is the first column of this (tab
delimited) text file and 1000_at is the second column.  I want to keep both
columns as labels.  Is there a way to do that?

I've used: 
test <- read.table("<path>", header=T, sep="\t", row.names=1)
and get the error, more columns than column names.

Many Thanks,

Patrick
Van Andel Institute
Grand Rapids, MI
-- 
View this message in context: 
http://www.nabble.com/keeping-seperate-row.names-tp18512130p18512130.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.

Reply via email to