title: Error message with a priori function in R - can not coerce list with transactions
body: <p>I am new to stackoverflow so please take that into consideration when reading my question... thank you for your help.</p>
  
  <p>I am trying to run the a priori function in R, but get the error: </p>
  
  <blockquote>
    <p>cannot coerce list with transactions with duplicated names</p>
  </blockquote>
  
  <p>I don't know if it is an issue with the way my data is formatted in the CSV file, or if I am missing a step in the program.</p>
  
  <ol>
  <li>Load CSV file</li>
  <li><code>mydata&lt;-lapply(mydata, as.factor)</code></li>
  <li><code>rules&lt;-apriori(mydata,parameter=list(supp=.01,conf=.7))</code></li>
  </ol>
  
  <blockquote>
    <p>Error in asMethod(object) : can not coerce list with transactions with
    duplicated item</p>
  </blockquote>
  
  <p>My data is formatted as a list of transactions with 1 or 0 for each product available (column):</p>
  
  <pre><code>product1....product15
  
  1                 1
  
  1                 0
  
  0                 0
  
  1                 1
  </code></pre>