title: Initialize kmeans, *vector* initial centroids, R
body: <p>In <a href="https://stackoverflow.com/questions/16390493/r-kmeans-initialization">this post</a> there is a method to initialize the centers for the K-means algorithm in R. However, the data used therein is scalar (i.e. numbers).</p>
  
  <p>A variation on this question: what if the data has multiple dimensions. In that case, the new centers should be vectors, so start should be a vector of vectors... I tried something like :</p>
  
  <pre><code>C1&lt;- c(1,2)
  C2&lt;- c(4,-5)
  </code></pre>
  
  <p>to have my two initial centers, and then use</p>
  
  <pre><code>kmeans(dat, c(C1,C2))
  </code></pre>
  
  <p>but it didn't work. I also tried <code>cbind()</code> instead of <code>c()</code>. Same result...</p>