arules isolating lhs and rhs
<p>So here is the example:</p>

<pre><code>library(arules)
data(Adult)
rules &lt;- apriori(Adult,parameter = list(maxlen = 2,minlen=2))
inspect(head(rules,3))


 lhs                         rhs                              support confidence     lift
1 {relationship=Unmarried} =&gt; {capital-loss=None}            0.1019819  0.9719024 1.019537
2 {occupation=Sales}       =&gt; {race=White}                   0.1005282  0.8920785 1.043314
3 {occupation=Sales}       =&gt; {native-country=United-States} 0.1039679  0.9226017 1.028055
</code></pre>

<p>I want to create a data.table with 2 columns, one called lhs and the other rhs where I have stored the lhs and rhs values of my rules like this:</p>

<pre><code>lhs                        rhs
relationship=Unmarried    capital-loss=None
occupation=Sales          race=White
occupation=Sales          native-country=United-States
</code></pre>

<p>I would swear that I did it once starting with <code>a&lt;-as.data.table(inspect(rules))</code> on windows but on my mac that doesnt work... What do you suggest?</p>