Skip to content
Back to formatted view

Raw Message

Message-ID: <73f827b50812210735w3956efe5l5cb0dfe35acc0e27@mail.gmail.com>
Date: 2008-12-21T15:35:08Z
From: Gundala Viswanath
Subject: Globbing Files in R

Dear all,

For example I want to process set of files.

Typically  Perl's idiom would be:

__BEGIN__
@files = glob("/mydir/*.txt");

foreach my $file (@files) {
  # process the file
}
__END__

What's the R's way to do that?

- Gundala Viswanath
Jakarta - Indonesia