I do not understand the question. If you already know the names what is the 
problem to select the files by names? 

If you have the names but not inside of R you have to find a name pattern to 
avoid typing them in. Is there a pattern, e.g. da.txt, db.txt, dc.txt? 


On 08 Nov 2013, at 18:33, Zilefac Elvis <zilefacel...@yahoo.com> wrote:

> Hi,
> I have 300 .txt files in a directory. Out of this 300, I need just 100 of the 
> files.
> I have the names of the 100 .txt files which are also found in the 300 .txt 
> files.
> How can I extract only the 100 .txt files from the 300 ,txt files?
> 
> e.g given d1.txt, ds.txt, dx.txt, df.txt...d300.txt, how can I select only 
> d1.txt and df.txt? Remember, I have 300 of such and want to extract 100 of 
> them with names known.
> 
> Thanks for your great help.
> Atem.
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to