title: List distinct values in a vector in R
body: <p>How can I list the distinct values in a vector where the values are replicative? I mean, similarly to the following SQL statement:</p>
  
  <pre><code>SELECT DISTINCT product_code
  FROM data
  </code></pre>