From hadley at rice.edu  Mon Jun 21 05:42:31 2010
From: hadley at rice.edu (Hadley Wickham)
Date: Sun, 20 Jun 2010 22:42:31 -0500
Subject: [Rd] proposed change to 'sample'
In-Reply-To: <4C1E8408.1010609@gmail.com>
References: <4C1DE879.6040303@pburns.seanet.com>
	<77EB52C6DD32BA4D87471DCD70C8D700031C9A21@NA-PA-VBE03.na.tibco.com>
	<4C1E8408.1010609@gmail.com>
Message-ID: <AANLkTilJm651mXnqOUFWhipqV11QOldSyjCyUD6IHric@mail.gmail.com>

> I would be more inclined to make sampling from a vector the normal case,
> and default x to say 1:max(n, size), forcing users to say sample(n=5) if
> sampling from x=1:5 is desired. This could be a manageable change; the
> deprecation sequence is a bit painful to think through, though.

Don't we already have sample.int for that case?

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



[Rd] proposed change to 'sample'
Hadley Wickham