This was the scenario that Phoebe posted about. Her data was:
2.93290e-06 1.17772e-06 -0.645205 rs2282755
3.07521e-06 3.14000e-04 0.412997 rs1336838
4.84017e-06 2.18311e-01 0.188669 rs2660664 rs967785
9.77861e-06 7.04740e-02 0.294653 rs2660664
1.22767e-05 1.56325e-05 0.569826 rs6870519
2.
I have the same problem. If the first row has more columns than later rows,
the fill=TRUE works; however when the first row has LESS columns than later
rows, R won't read in more columns than the length of the first row. Anyone
has solutions?
Yanni
Marc Schwartz wrote:
>
> on 11/11/2008 03:39
on 11/11/2008 03:39 PM phoebe kong wrote:
> Hi all,
>
> I have problem reading in a text file as follow.
>
> The following data has not column header. I tried the following
> command but failed,
>
> temp<-read.table("data.txt",header=F)
>
> An error message stated that line 3 did not have 4 ele
Hi all,
I have problem reading in a text file as follow.
The following data has not column header. I tried the following
command but failed,
temp<-read.table("data.txt",header=F)
An error message stated that line 3 did not have 4 elements.
0.293290E-05 0.117772E-05 -0.645205 rs22
4 matches
Mail list logo