I want to split a column in R that has description for Size, Color and customer for an apparel product.
The column looks like this
Size:AS - Adult Small, Colours: Black , Sold By: Elmwood Size:YS - Youth Small, Colours: Black, Sold By: Rosemary Brown PS Colours - Black, Sold By: Rosemary Brown PS
so, some columns has size, some starts with color
I need to make three columns - 1. Size 2. Colors 3. Sold By For size - I just need the two letter size code , For Color - Need Color Description For Sold By : I need to parse it until it find any 'comma'
Thanks for your help