title: Creating new column based on cluster in R
body: <p>Dear Stack overlow users...</p>
  <p>I am struggling with using R. I did not frequently use it but used stata instead..</p>
  <p>My data set has several clusters</p>
  <p><img src="https://i.stack.imgur.com/bFOfQ.png" alt="Data figure" /></p>
  <p>What I wanna do is making new cluster columns with the value
  so the clusters will be clolumn and each column has value.</p>
  <p>Many thanks in advance</p>