Hello togehter,

i have a little problem, maybe anyone can help me.

I have a data.frame, which look like this one:
      ID         Members
1     1         ; abc; def; ghi
2     2         ; abc;
3     3         ;def;

How can I create another column for each value between 2 semicolons?

The result look like this one:

      ID         Members                Member1            Member2             
Member3
1     1         ; abc; def; ghi         abc                     def             
        ghi
2     2         ; abc;                     abc
3     3         ;def;                      def

Maybe anyone can help me. Thank you.

Best regards.

Mat


________________________________
This e-mail may contain trade secrets, privileged, undisclosed or otherwise 
confidential information. If you have received this e-mail in error, you are 
hereby notified that any review, copying or distribution of it is strictly 
prohibited. Please inform us immediately and destroy the original transmittal. 
Thank you for your cooperation.

Diese E-Mail kann Betriebs- oder Geschaeftsgeheimnisse oder sonstige 
vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich 
erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine 
Vervielfaeltigung oder Weitergabe der E-Mail ausdruecklich untersagt. Bitte 
benachrichtigen Sie uns und vernichten Sie die empfangene E-Mail. Vielen Dank.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to