[R] Fw: select .txt from .txt in a directory
Sarah Goslee
sarah.goslee at gmail.com
Fri Nov 8 19:39:47 CET 2013
Hi,
I'm not particularly interested in opening unsolicited binary attachments.
Why don't you use dput() to provide part of your data to the R-help
list (copied on this email; emailing just me not being that useful).
You still haven't told us what you want to do with the named text
files - read them into R?
In general, you would read the file with the list of names into R,
then use a loop or a *apply construct to import each of those named
files. Based on what you've said, the fact that your desired list has
only 100 of the 300 total files is a red herring.
Sarah
On Fri, Nov 8, 2013 at 1:30 PM, Zilefac Elvis <zilefacelvis at yahoo.com> wrote:
> Hi Sarah
> Attached are my data files.
> Btemperature_Stations is my main file.
> Temperature inventory is my 'wanted' file and is a subset of
> Btemperature_Stations.
> Using column 3 in both files, select the files in Temperature inventory from
> Btemperature_Stations.
> The .zip file contains the .txt files which you will extract to a folder and
> do the selection in R.
>
> Thanks,
> Atem.
>
--
Sarah Goslee
http://www.functionaldiversity.org
More information about the R-help
mailing list