Re: [R] help with grep list files

2017-02-20 Thread David Wolfskill
On Mon, Feb 20, 2017 at 03:41:50PM -0600, Glenn Schultz wrote: > All, > > I have the following files in a directory and I would like only a list of > those starting with “lld" and ending with “dat”. I used the following and it > gives me the lld files > > list.files(path = readpath, pattern

Re: [R] help with grep list files

2017-02-20 Thread Rui Barradas
Hello, Maybe if you change the pattern to "^lld[A-Z0-9]*\\.dat$" Hope this helps, Rui Barradas Em 20-02-2017 21:41, Glenn Schultz escreveu: All, I have the following files in a directory and I would like only a list of those starting with “lld" and ending with “dat”. I used the following

[R] help with grep list files

2017-02-20 Thread Glenn Schultz
All, I have the following files in a directory and I would like only a list of those starting with “lld" and ending with “dat”. I used the following and it gives me the lld files list.files(path = readpath, pattern = "^lld[A-Z0-9]") to get just .dat files I tried list.files(path = readpa