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 <[email protected]>
To:
amindlessbrain <[email protected]>
Cc:
[email protected]
Date:
10/26/2010 09:34 AM
Subject:
Re: [R] Reading in a tab delimitated file
Sent by:
[email protected]
2010/10/26 amindlessbrain <[email protected]>
>
> (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]]
______________________________________________
[email protected] 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]]
______________________________________________
[email protected] 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.