Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Removing double values from a column in R

$
0
0

enter image description here

I need to know how many different items are produced by each company (ID). The result should be this:

  • Company 1 = 4 (A,B,C,D)
  • Company 2 = 1 (B)
  • Company 3 = 2 (A,B)
  • Company 4 = 2 (A,B)

Which code should I use to get there? I guess it should be something that allows me to count the unique values for each ID.

Thanks


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>