Off topic:[SOLVED] How to expand a data.frame?
0
1
Entering edit mode
5.5 years ago

I have a dataframe like:

    a= data.frame (A= c('a','b;c;d'),B= c('e','f'))
a    
      A B
1     a e
2 b;c;d f

How to convert it (efficiently) to a dataframe of

       A B
 1     a e
 2     b f
 3     c f
 4     d f

Thank you.

dataframe expand • 697 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2722 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6