Hellos I have a rules-class element which I got from the apriori function in
the arules package, no I would like to stay just with a subset of the rules.
Does anybody know how can I create an object which has only the subset
corresponding from some indices I give him. For example if I have the
followint rules-class object:
lhs
rhs support confidence lift
1 {} =>
{tarjetas_flagrancia.adquiriente2=} 0.9960369 0.9960369 1.0000000
2 {datafono.marca5=} =>
{tarjetas_flagrancia.adquiriente2=} 0.8049805 0.9984959 1.0024688
3 {Target=1} =>
{resultado_investig.pto_comp=N} 0.8134982 0.9991282 1.0427348
4 {Target=1} =>
{tarjetas_flagrancia.adquiriente2=} 0.8106589 0.9956411 0.9996026
5 {antecedentes.estado=1} =>
{antecedentes.medio=4} 0.8420383 1.0000000 1.1392183
6 {antecedentes.estado=1} =>
{tarjetas_flagrancia.adquiriente2=} 0.8382231 0.9954691 0.9994299
7 {antecedentes.factor_riesgo=17} =>
{antecedentes.riesgo=1} 0.8507926 1.0000000 1.1750886
8 {antecedentes.riesgo=1} =>
{antecedentes.factor_riesgo=17} 0.8507926 0.9997567 1.1750886
I would like my result to be the following rule-class object if I choose to
stay with the third and eigth rules
lhs
rhs support confidence lift
3 {Target=1} =>
{resultado_investig.pto_comp=N} 0.8134982 0.9991282 1.0427348
8 {antecedentes.riesgo=1} =>
{antecedentes.factor_riesgo=17} 0.8507926 0.9997567 1.1750886
Thank You
Felipe Parra
[[alternative HTML version deleted]]