Thanks so much!
On Sat, Jul 28, 2012 at 1:32 PM, Ted Harding wrote:
> And, in addition to the tip from Rui (and similar from Joshua) below,
> I would advise that there is one good reason not to try doing it
> in "pure Linux".
>
> The only source (that I know of) in Linux itself for random number
And, in addition to the tip from Rui (and similar from Joshua) below,
I would advise that there is one good reason not to try doing it
in "pure Linux".
The only source (that I know of) in Linux itself for random numbers
can be tapped by something like
cat /dev/random > filename
/dev/random sto
Hello,
If the files are to be processed in R select a random sample in R.
Using list.files() you can assign a character vector with the filenames
of interest and then sample from that vector.
?list.files
filenames <- list.files(path, pattern)
rand.sampl <- sample(filenames, 45)
Hope this hel
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
Dear R People:
I am using a Linux system in which I have about 3000 files.
I would like to randomly select about 45 of those files to be processed in R.
Could I make the selection in R or should I do it in Linux, please?
This is with R-2.15.1.
Thanks,
erin
--
Erin Hodgess
Associate Professo
5 matches
Mail list logo