title: How do you extract scclust objects and append them to a data frame in R?
body: <p>I have a list of a few thousand scclust  objects. I need to write a function to loop through the clusters and append the 0's and 1's from each scclust object to a different data frame. I'm having trouble figuring out how to do this. Here's a small example of what the cluster data looks like and what I would like the data frame output to be.</p>
  <pre><code>my_list$cluster1
  0 1 0 0 0
  
  my_list$cluster2
  0 1 1 0 0
  
  my_df
  id cluster_number new_column
  1  cluster1       0
  2  cluster1       1
  3  cluster1       0
  4  cluster1       0
  5  cluster1       0
  6  cluster2       0
  7  cluster2       1
  8  cluster2       1
  9  cluster2       0
  10 cluster2       0
  </code></pre>