Displaying 1 result from an estimated 1 matches for "_branching_".
2011 Jul 05
4
if else lop
I am trying to use if...else loop and have included a code snippet which I
might like to expand.
Maybe you could steer me in the right direction.
library(stats)
library(prob)
{
a <- sample ( 1:4,100, replace=T,prob=c(0.1,0.2,0.5,0.3))
b<-sample(3:6,100,replace=T,prob=c(0.2,0.2,0.2,0.4))
}
dd <- data.frame(a,b)
if (subset finds a vector) ( print that vector)
(else