[R] how to randomly eliminate half the entries in a vector?

Esmail Bonakdarian esmail.js at gmail.com
Wed Feb 18 04:33:56 CET 2009


Gene Leynes wrote:
> This is my first help post, hope it works!
> 
> Just check out the "sample" function
> At the command line type:
> ?sample
> 
> I think it will be pretty clear from the documentation.

Yes, most excellent suggestion and quite helpful!

Thanks,
Esmail




More information about the R-help mailing list