Re: [R] sample() from (un-)sorted vectors

2012-08-15 Thread Jeff Newmiller
This seems more theoretical than specific to R, so you should discuss this question in a more theoretical forum such as http://stats.stackexchange.com/. FWIW I believe the results will be equally random either way. That doesn't say either way will be "absolutely" random, since I don't think such

Re: [R] sample() from (un-)sorted vectors

2012-08-15 Thread Bert Gunter
Define: "Absolutely random"; "systematic differences" (All pseudorandom numbers are by definition generated by a deterministic algorithm from a possibly random starting seed set). On Wed, Aug 15, 2012 at 9:11 AM, wrote: > Hello, > > Vector y is an alphabetically sorted version of vector x. Wil

[R] sample() from (un-)sorted vectors

2012-08-15 Thread saschaview
Hello, Vector y is an alphabetically sorted version of vector x. Will both samples, X and Y, be "absolutely" random or will they have systematic differences? And: Should I sort or shuffle a vector before sampling? Thank you, *S* x <- as.factor(LETTERS[sequence(10:1)]) y <- sort(x) X <- sampl