[R] Randomize two categories testing a specific condition R version 3.0.2 windows 32 bit

2013-11-23 Thread Manos Spanakis
Hello everyone I am new to R. At this time I am trying to create a vector so i can randomize two categories a,b under the following conditions : Take a random x from random uniform(0,1) if x0.5 then the vector takes value a else takes b . This continues until the number of a's-the number of b's 2

Re: [R] Randomize two categories testing a specific condition R version 3.0.2 windows 32 bit

2013-11-23 Thread Daniel Nordlund
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Manos Spanakis Sent: Saturday, November 23, 2013 1:48 AM To: R-help@r-project.org Subject: [R] Randomize two categories testing a specific condition R version 3.0.2 windows 32