I want to get the count of column values for Prod1
S# Types Product Name
-- ----- ------------
1 ["A","B","C"] Prod1
2 ["B","C"] Prod1
3 ["A","C"] Prod1
4 ["Z"] Prod2
I want the output for Prod1
in this format(i.e. Count of each column value)
Prod1
-----
A B C
2 2 3
I will use this value to plot a graph.
Need a pure r-script
way to do this without any additional libraries (cause i will use this in PowerBI).