[R] regular expressions in R
sarah.goslee at gmail.com
Wed Dec 21 17:11:37 CET 2011
>From the help for dir:
File naming conventions are platform dependent. The pattern
matching works with the case of file names as returned by the OS
On my linux system, this works:
 "a.txt" "b.txt"
 "a.txt" "b.txt" "c.doc"
You don't tell us your OS, so I have no idea whether it will work for you.
On Wed, Dec 21, 2011 at 11: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?
More information about the R-help