[R] Separator argument in read.table
Gundala Viswanath
gundalav at gmail.com
Thu May 29 03:48:57 CEST 2008
Hi,
Suppose I have the following tabular data:
1729_at | TRADD | TNFRSF1A-associated via death domain | protein-coding
1773_at | FNTB | farnesyltransferase, CAAX box, beta | protein-coding
177_at | PLD1 | phospholipase D1, phosphatidylcholine-specific | protein-coding
What is the right separator used for read.table function?
I tried this:
dat <- read.table("geo2geneinfo_bymodel.txt", sep = "|")
print(dat)
It doesn't seem to work. It flattens the table above into just two columns
meaning only contain $V1 and $V2.
sep=" | " also won't work.
Please advice.
--
Gundala Viswanath
More information about the R-help
mailing list