Skip to content
Prev 257694 / 398502 Next

set.seed ( ) function

On Thu, Apr 21, 2011 at 8:34 PM, Penny Bilton <pennybilton at xnet.co.nz> wrote:
Sure, just because numbers are random does not guarantee that equal
numbers from both groups will be sampled.  Perhaps you are looking for
some sort of constrained random sampling like sampling x from group 1
and x from group 2?  If so, try calling sample() separately on each
group (for help applying the same function to different groups, take a
look at ?by or ?tapply for example).

Josh

PS cced back to list