Skip to content
Prev 248864 / 398506 Next

arules package question- apriori/S4 object export question

Hi John,

You can use WRITE (see ? WRITE) to save rules to a file in the
from:

{a,b,c} => {d} 0.1 0.3 2.2

where the numbers after the rule are support, confidence and lift.
There is no csv export since the number of items in the rules varies and 
the data structure can not be converted into a simple table.

Alternatively you can export the rules using PMML (XML) and use a XML 
parser to get the rules.

Best,
Michael
On 01/-10/-28163 01:59 PM, johnistan wrote: