[R] regular expressions in R
R. Michael Weylandt
michael.weylandt at gmail.com
Wed Dec 21 17:11:43 CET 2011
Do you wish to include .docx files as well or just .doc?
On Wed, Dec 21, 2011 at 10:04 AM, Alaios <alaios at yahoo.com> wrote:
> Dear all
> I would like to ask from dir function in R (?dir)
> to give me only the files that end with .txt or .doc.
> The dir functions supports the use of patterns (is not that regular expressions) for doing that.
> Could you please help me compose such a pattern?
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help