If you want to set constraint to the left or right hand side of rules, you can set lhs and rhs in "appearance" and an example is
> # rules with rhs containing "Survived" only
> rules <- apriori(titanic.raw,
+ parameter = list(minlen=2, supp=0.005, conf=0.8),
+ appearance = list(rhs=c("Survived=No", "Survived=Yes"),
+ default="lhs"),
+ control = list(verbose=F))
See detailed example at
http://www.rdatamining.com/examples/association-rules.
Regards
Yanchang
RDataMining.com