discretize function of multiple columns
<p>I have the following csv: 
<a href="https://github.com/antonio1695/Python/blob/master/nearBPO/facturasprueba.csv" rel="nofollow">https://github.com/antonio1695/Python/blob/master/nearBPO/facturasprueba.csv</a></p>

<p>With it I want to use the <code>apriori</code> function to find association rules. However, I get the error:</p>

<blockquote>
  <p>Error in asMethod(object) : 
  column(s) 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 not logical or a factor. Discretize the columns first.</p>
</blockquote>

<p>I have already bumped into this error before, and what I did was:</p>

<pre><code>dataframe$columnX &lt;- discretize(df$columnX) 
</code></pre>

<p>However, this only works if I select manually each column and discretize them one by one. I would like to do the same thing but for aprox 3k columns. The case I gave you has only 11, I'm guessing that 11 will do. </p>