[R] keeping seperate row.names
Patrick Richardson
xplaner800 at yahoo.com
Thu Jul 17 18:08:50 CEST 2008
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.
More information about the R-help
mailing list