Dear Rs:

BY having the following code:

candidates<-expand.grid(e=c("nearest-neighbor","exaustive"),
d=c(70,75,80,85,90,92,94,96,98,99),
n=c(20,25,30,35,40))

results in :

e d n
1 nearest-neighbor 70 20
2 exaustive 70 20
3 nearest-neighbor 75 20
4 exaustive 75 20
................
90 exaustive 90 40
91 nearest-neighbor 92 40
92 exaustive 92 40
93 nearest-neighbor 94 40
94 exaustive 94 40
95 nearest-neighbor 96 40
96 exaustive 96 40
97 nearest-neighbor 98 40
98 exaustive 98 40
99 nearest-neighbor 99 40
100 exaustive 99 40


I need to associate "nearest-neighbor" with
d=c(70,75,80,85,90,92,94,96,98,99), n=c(20,25,30,35,40)
but "exaustive" only with d=c(70,75,80,85,90,92,94,96,98,99). Therefore I
will have only 50+10 combinations not 100.
I need to have combination as shown below

1 nearest-neighbor 70 20
2 exaustive 70
3 nearest-neighbor 75 20
4 exaustive 75
................
60

Thanks
Prasanna


--
Prasanna BALAPRAKASH
IRIDIA, Université Libre de Bruxelles
50, Av. F. Roosevelt, CP 194/6
1050 Brussels
Belgium.

	[[alternative HTML version deleted]]


