Skip to content
Back to formatted view

Raw Message

Message-ID: <AD847E53-6E13-4AD8-A97A-24E86A525676@comcast.net>
Date: 2011-11-08T17:04:55Z
From: David Winsemius
Subject: rearrange set of items randomly
In-Reply-To: <1320769898728-4016613.post@n4.nabble.com>

On Nov 8, 2011, at 11:31 AM, flokke wrote:

> Thanks for the replies!
>
> Indeed, I could use order() instead of sample()  but that it wouldnt  
> be
> random anymore, as it sorts data points in increasing(!) order.  
> Second, I
> have to use 1000 different samples.

Please re-read the help page for `order` _and_ the one for `sort`,  
examine their differences,  re-read the replies you have gotten so  
far, work through _all_ of the examples, and if illumination still  
does not arrive, then repeat the above process until it does.

>
> I got the hint that I have to do somethin with indeces, but still cant
> figure out what this should be.
> Maybe someone of you knows?

Many (if not most)  of us do. We try to avoid having r-help becoming a  
homework tutoring site, however. You should be using your academic  
resources for this effort.

-- 

David Winsemius, MD
West Hartford, CT