How to remove duplicate comma separated character values from each cell of a column using R
<p>I have a data-frame with 2 columns ID and Product as below :</p>

<pre><code>ID  Product
A   Clothing, Clothing Food, Furniture, Furniture
B   Food,Food,Food, Clothing
C   Food, Clothing, Clothing
</code></pre>

<p>I need to have only unique products for each ID, for example :</p>

<pre><code>ID  Product
A   Clothing, Food, Furniture
B   Food, Clothing
C   Food, Clothing
</code></pre>

<p>How do I do this using R</p>