Re: [Rd] sample suggestion

2004-10-07 Thread Duncan Murdoch
On Thu, 7 Oct 2004 09:00:01 +0200, [EMAIL PROTECTED] (Göran Broström) wrote: >I have been bitten by what is clearly described on the help page for >'sample', namely sampling from a population of size one. I agree that it is >convenient to have an exception if 'length(x) == 1', but my suggestion is

[Rd] sample suggestion

2004-10-07 Thread Göran Broström
I have been bitten by what is clearly described on the help page for 'sample', namely sampling from a population of size one. I agree that it is convenient to have an exception if 'length(x) == 1', but my suggestion is to enforce the exception only if 'x' is numeric. In any case, if x is not numeri