Re: [R] Filling Empty Column with String in read.table

2009-09-17 Thread Henrique Dallazuanna
Try this after read the data file: dat[is.na(dat[,5]),5] <- '-' On Thu, Sep 17, 2009 at 3:33 AM, Gundala Viswanath wrote: > I have a data file that looks like this. > > __DATA__ > D7KAR5Z02F447V  176 G   0.22 > D7KAR5Z02J3WLG  94  A   1.05    29 > D7KAR5Z02F4K6L  198 a   0.13 > D7KAR5Z02J4SYO  6

[R] Filling Empty Column with String in read.table

2009-09-16 Thread Gundala Viswanath
I have a data file that looks like this. __DATA__ D7KAR5Z02F447V 176 G 0.22 D7KAR5Z02J3WLG 94 A 1.0529 D7KAR5Z02F4K6L 198 a 0.13 D7KAR5Z02J4SYO 67 C 0.9528 D7KAR5Z02J4SYO 83 C 1.0129 D7KAR5Z02J4SYO 97 T 0.13 D7KAR5Z02J4SYO 166 A 0.9427 I want the rows whe