I was wondering if anyone knows how to constrain the left and right hand sides in apriori (arules) by pointing to a .csv containing the constraints.
rules_sales <- apriori(sales, 
                       parameter=list(support=0.001, confidence=0.5, minlen=2, maxlen=2), 
                       appearance=list(lhs=c("HouseOwnerFlag=0", "HouseOwnerFlag=1"), 
                       rhs=paste0("Product=", unique(sales$Product)), default="none"))
However I have a fairly substantial list of constraints to apply and am trying to avoid typing or copying and pasting directly into R.
Thanks for looking!
 
    