[R] Globbing Files in R

Gundala Viswanath gundalav at gmail.com
Sun Dec 21 16:35:08 CET 2008


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



More information about the R-help mailing list