[R] <no subject>

Duncan Murdoch dmurdoch at pair.com
Tue Feb 24 16:23:24 CET 2004

On Tue, 24 Feb 2004 17:14:17 +0300, Timur Elzhov
<Timur.Elzhov at jinr.ru> wrote :

>  flist <- system("ls *.dat", intern = TRUE)

That's not portable (Windows doesn't necessarily have ls).
list.files() is the portable function to do this.

If you want to be Windows-only non-portable, then choose.files() is a
bit more friendly than list.files().

Duncan Murdoch

More information about the R-help mailing list