A call to read.table(..., sep = "", ...) reads in any length of whitespace 
as the delimiter. On your sample text it read in a 2 column dataframe.
--------------------------------------
Jonathan P. Daily
Technician - USGS Leetown Science Center
11649 Leetown Road
Kearneysville WV, 25430
(304) 724-4480
"Is the room still a room when its empty? Does the room,
 the thing itself have purpose? Or do we, what's the word... imbue it."
     - Jubal Early, Firefly



From:
Ùukasz Ræcùawowicz <lukasz.reclawow...@gmail.com>
To:
amindlessbrain <jillianrowe91...@gmail.com>
Cc:
r-help@r-project.org
Date:
10/26/2010 09:34 AM
Subject:
Re: [R] Reading in a tab delimitated file
Sent by:
r-help-boun...@r-project.org



2010/10/26 amindlessbrain <jillianrowe91...@gmail.com>

>
> (I'm not sure why the disease column isn't showing up as a tab here, but
it
> is sep by "\t" in my file.
>

You've got a double tab space, I don't know is there a prettier way, but
paste this:

pd<-read.delim("new_treat.txt",sep="        ")

-- 
Mi³ego dnia

                 [[alternative HTML version deleted]]

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



        [[alternative HTML version deleted]]

______________________________________________
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