Skip to content
Prev 301573 / 398503 Next

selecting a subset of files to be processed

Hi Erin,

It is not difficult to imagine doing it either in R or via the shell.
If they are all in the same directory, I would tend towards R, just
because you can easily set the seed and keep that information so you
can reproduce your random selection.

If the wd is in the directory with the files, from R just:

set.seed(10)
toprocess <- sample(list.files(), size = 45)

Cheers,

Josh
On Sat, Jul 28, 2012 at 10:49 AM, Erin Hodgess <erinm.hodgess at gmail.com> wrote: