[R] shuffling a vector
Giovanni Petris
GPetris at uark.edu
Mon Nov 10 17:56:24 CET 2003
?sample
> Date: Mon, 10 Nov 2003 11:28:56 -0500
> From: Rajarshi Guha <rxg218 at psu.edu>
> Sender: r-help-bounces at stat.math.ethz.ch
> Organization:
> Precedence: list
>
> Hi,
> I'me trying to write a function that will shuffle a vector. At the
> moment I'm baically making a vector of randomized indices and then
> making a new vector from the original one using these random indices.
>
> However, is there an alternative (more elegant) method to do this? I
> tried help.search('shuffle') but it does'nt return anything relevant.
>
> Thanks,
>
> -------------------------------------------------------------------
> Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net>
> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
> -------------------------------------------------------------------
>
> Q: What is a dyslexic, agnostic, insomniac?
> A: Someone who lays awake at night wondering if there really is a dog!
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>
--
__________________________________________________
[ ]
[ Giovanni Petris GPetris at uark.edu ]
[ Department of Mathematical Sciences ]
[ University of Arkansas - Fayetteville, AR 72701 ]
[ Ph: (479) 575-6324, 575-8630 (fax) ]
[ http://definetti.uark.edu/~gpetris/ ]
[__________________________________________________]
More information about the R-help
mailing list