Displaying 2 results from an estimated 2 matches for "rs2282755".
2008 Nov 12
1
scanning text file to extract particular word
...art with "rs".
For example, below is format of the text file, I would like to extract those
words start with "rs"
 ORDINARY REGRESSION: BEST LASSO PREDICTORS
 PREDICTOR            MARGINAL        LEAVE-ONE-OUT
   NAME               P-VALUE             INDEX        ESTIMATE
 *rs2282755*          0.293290E-05      0.148870E-05    -0.646161
* rs1336838          *0.307521E-05      0.133489E-04     0.463460
* rs2660664          *0.977861E-05      0.531800E-04     0.520049
* rs6870519          *0.122767E-04      0.133453E-04     0.568136
* rs10488345         *0.227205E-04      0.32604...
2008 Nov 11
1
data which has different size of elements in each row
...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     rs2282755
 0.307521E-05           0.000314      0.412997     rs1336838
 0.484017E-05           0.218311      0.188669     rs2660664         rs967785
 0.977861E-05           0.070474      0.294653     rs2660664
 0.122767E-04       0.156325E-04      0.569826     rs6870519
 0.227205E-04           0.000189     -...