title: Arules Sequence Mining in R
body: <p>I am looking to use the <code>arulesSequences</code> package in R.  However, I have no idea as to how to coerce my data frame into an object that can leverage this package.  </p>
  
  <p>Here is a toy dataset that replicates my data structure:</p>
  
  <pre><code>ids &lt;- c(rep("X", 5), rep("Y", 5), rep("Z", 5))
  seq &lt;- rep(1:5,3)
  val &lt;- sample(LETTERS, 15, replace=T)
  df &lt;- data.frame(ids, seq, val)
  df
  
     ids seq val
  1    X   1   T
  2    X   2   H
  3    X   3   V
  4    X   4   A
  5    X   5   X
  6    Y   1   D
  7    Y   2   B
  8    Y   3   A
  9    Y   4   D
  10   Y   5   P
  11   Z   1   Q
  12   Z   2   R
  13   Z   3   W
  14   Z   4   W
  15   Z   5   P
  </code></pre>
  
  <p>Any help will be greatly appreciated.</p>