On Thu, 27 Sep 2007, Jun Ding wrote:
> Hi Everyone,
>
> Recently I got puzzled by the function read.table,
> even though I have used it for a long time.
>
> I have such a file (tmp.txt, 2 rows and 3 columns,
> with a space among columns):
>
> 1 2'-PDE 4
> 2 3'-PDE 5
>
> if I do:
> a = read.table("
Hi Everyone,
Recently I got puzzled by the function read.table,
even though I have used it for a long time.
I have such a file (tmp.txt, 2 rows and 3 columns,
with a space among columns):
1 2'-PDE 4
2 3'-PDE 5
if I do:
a = read.table("tmp.txt", header = F, quote = "")
a
V1 V2 V3
1 1 2'
Take a look at ?scan.
There is an explanation for the doubling of the string
Bart
Jun Ding wrote:
>
> Hi Everyone,
>
> Recently I got puzzled by the function read.table,
> even though I have used it for a long time.
>
> I have such a file (tmp.txt, 2 rows and 3 columns,
> with a space am
Hi Everyone,
Recently I got puzzled by the function read.table,
even though I have used it for a long time.
I have such a file (tmp.txt, 2 rows and 3 columns,
with a space among columns):
1 2'-PDE 4
2 3'-PDE 5
if I do:
a = read.table("tmp.txt", header = F, quote = "")
a
V1 V2 V3
1 1 2'
4 matches
Mail list logo