[R] Search for a text string and write position related data to a file

2003-10-02 Thread Karin Gerard Preusting
Dear all, I just started using R today. What I need to do is find a text string in a (large) text file and than copy the some position related lines (or text) to an other text file. Is this possible with R? Example: Search string is: Date write line of search string +0, +2, +6, +7, +8, +9

Re: [R] Search for a text string and write position related data to a file

2003-10-02 Thread Peter Dalgaard BSA
Karin Gerard Preusting [EMAIL PROTECTED] writes: Dear all, I just started using R today. What I need to do is find a text string in a (large) text file and than copy the some position related lines (or text) to an other text file. Is this possible with R? It's hardly a typical R