Re: [R] listing the files in a directory using regular expressions

2012-10-14 Thread Gabor Grothendieck
On Sun, Oct 14, 2012 at 8:03 AM, siddu479 wrote: > > Hi Gabor, > > Thanks for your reply.. > *glob2rx()* function works for my requirement to address global > pattern(using *) of files like we use in Unix shell. > > Sidda > Also Sys.glob may be useful here. __

Re: [R] listing the files in a directory using regular expressions

2012-10-14 Thread siddu479
Hi Gabor, Thanks for your reply.. *glob2rx()* function works for my requirement to address global pattern(using *) of files like we use in Unix shell. Sidda -- View this message in context: http://r.789695.n4.nabble.com/listing-the-files-in-a-directory-using-regular-expressions-tp464

Re: [R] listing the files in a directory using regular expressions

2012-10-14 Thread Rui Barradas
Hello, Try the pattern "A_B.*_C.*\\.csv". Hope this helps, Rui Barradas Em 14-10-2012 08:13, siddu479 escreveu: Hi Experts, This might be silly question that I am asking, but no way as I am new to R. I want to list the files in a directory using regular expression like A_B*_C*.csv etc

Re: [R] listing the files in a directory using regular expressions

2012-10-14 Thread Gabor Grothendieck
On Sun, Oct 14, 2012 at 3:13 AM, siddu479 wrote: > Hi Experts, > > This might be silly question that I am asking, but no way as I am new to > R. > I want to list the files in a directory using regular expression like > A_B*_C*.csv etc. > How to make this possible in R ? > I tried like this list

[R] listing the files in a directory using regular expressions

2012-10-14 Thread siddu479
Hi Experts, This might be silly question that I am asking, but no way as I am new to R. I want to list the files in a directory using regular expression like A_B*_C*.csv etc. How to make this possible in R ? I tried like this list.files(dir=".", pattern="A_B*_C*.csv") but this gives no output