Message-ID: <5789A42DD684734298BF9EC852D3511156E414@scad1exis02.alldata.net>
Date: 2002-11-13T17:32:44Z
From: Balint, Jess
Subject: Importing with read.table
Hi all. I have something similar to the following:
myinfo <- read.table( file = "myfile.txt", sep = "|", col.name = c( "data1",
"data2" ) )
myfile.txt:
a|1|
b|2|
However, since there are two pipe (|) characters, it reads it in and thinks
there should be three columns. This is not the case and I get a warning
about col.names is wrong length. Is there a way around this? Thanks.
jess
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._