I have the following code:
data <- data_frame(job_id = c("114124", "114188", "114206"), project_skills = c("WordPress,XTCommerce,Magento,Prestashop,VirtueMart,osCommerce", "HTML,SEO,WordPress,SEO Texte", "Illustrator,Graphic Design,Photoshop"))
which creates the following data frame:
job_id project_skills
114124 WordPress,XTCommerce,Magento,Prestashop,VirtueMart,osCommerce
114188 HTML,SEO,WordPress,SEO Texte
114206 Illustrator,Graphic Design,Photoshop
I need to split the strings (at the comma) from the project_skills column as follows:
job_id project_skills
114124 [WordPress] [XTCommerce] [Magento] [Prestashop] [VirtueMart] [osCommerce]
114188 [HTML] [SEO] [WordPress] [SEO Texte]
114206 [Illustrator] [Graphic Design] [Photoshop]
As a result i´d like to have a data frame with the splitted phrases as rows which should be vectors such that i can iterate through them. Has anyone an idea how i can establish this? Thank´s in advance!