Arules returning empty LHS
From help("apriori")
:
The default value in
APparameter
forminlen
is1
. This means that rules with only one item (i.e., an empty antecedent/LHS) like{} => {beer}
will be created. These rules mean that no matter what other items are involved the item in the RHS will appear with the probability given by the rule's confidence (which equals the support). If you want to avoid these rules then use the argument
parameter=list(minlen=2)
.