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.
__
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
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
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
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
5 matches
Mail list logo