title: Anonymize data for each distinct row in R
body: <p>Example</p>
  
  <p>Value</p>
  
  <pre><code>15   
  15   
  15   
  4   
  37   
  37   
  37  
  </code></pre>
  
  <p>There's three distinct values but 7 rows, below is what I want. Since I want to Anonymize my data. I keep getting the error "replacement has 3 rows, data has 7"</p>
  
  <p>This is the code I'm using</p>
  
  <pre><code>final_df$Value &lt;- paste("Value",seq(1:length(unique(final_df$Value))))
  </code></pre>
  
  <p>Value</p>
  
  <pre><code>Value 1
  Value 1   
  Value 1   
  Value 2   
  Value 3   
  Value 3   
  Value 3  
  </code></pre>