On Nov 7, 2011, at 4:09 PM, flokke wrote:
Dear all,
I hope that this question is not too weird, I will try to explain it
as good
as I can.
I have to write a function for a school project and one limitation
is that I
may not use the in built function sample()
At one point in the function I would like to resample/rearrange the
items of
my sample (so I would want to use sample, but I am not allowed to do
so), so
I have to come up with sth else that does the same as the in built
function
sample()
The only thing that sample() does is rearranging the items of a
sample, so I
searched the internet for a function that does that to be able to
use it,
but I cannot find anything that could help me.
Can maybe someone help me with this?
I would be very grateful,
May I suggests thinking about the ordering of random variables?
--
David Winsemius, MD
West Hartford, CT
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.