Re: [R] Vector of ones and zeros

2008-11-20 Thread Yihui Xie
or rbinom(n, size = 1, prob) Regards, Yihui -- Yihui Xie <[EMAIL PROTECTED]> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China On Thu

Re: [R] Vector of ones and zeros

2008-11-19 Thread Rolf Turner
On 20/11/2008, at 11:47 AM, [EMAIL PROTECTED] wrote: Dear R people, what functions generate respectively vectors with each element is respectively zero and one. sorry for my credulous questions and many thanks in advance. If you want a *random* (i.i.d.) vector of zeroes and ones, then the

[R] Vector of ones and zeros

2008-11-19 Thread hassen62
Dear R people, what functions generate respectively vectors with each element is respectively zero and one. sorry for my credulous questions and many thanks in advance. Écoutez gratuitement le nouveau single de Noir Désir et découvrez d'au