[R] constrained sample

Lutz Prechelt prechelt at pcpool.mi.fu-berlin.de
Thu May 6 20:00:32 CEST 2004


I'm afraid I do not understand what you need.
What is sampled from where and what do you need to keep constant?
And what is the relationship between the 'column' and the 'factor column'?

Maybe you can provide a complete example and counterexample?

  Lutz

> Is there an way to do a randomization (with sample) on a 
> column and that 
> maintain fixed the occurrence totals (i.e, numbers different 
> of zeros) on a factor column ?




More information about the R-help mailing list