Message-ID: <A31086B7-51F2-4AD5-91FF-588B26DFEC8B@xs4all.nl>
Date: 2013-03-17T08:08:21Z
From: Berend Hasselman
Subject: reading a specific part of a text file into R
In-Reply-To: <CAHf4VKzXrd-9JvPoriVWzyWr=2P8r-71Gi-JneKhg7z+MeC8Bg@mail.gmail.com>
On 17-03-2013, at 06:23, Sedat Sen <sedatsen06 at gmail.com> wrote:
> I was wondering if it is possible read a specific part of a text file in R
> without importing whole file.
>
> For example, I want to read a number where is located on the line 30 and
> columns between 2 and 4. Say the number is 456. can I see it without
> opening the file. I want to learn how to do this because I am doing many
> analyses which result in the same style output. I just need to read only
> one line in these outputs.
>
>
> Is there any specific function for this purpose? I googled it but did not
> find anything helpful.
Googling for what?
Googling on "R read lines" gives a lot.
Look at
?readLines
Berend