This is a test version of Biostars. For the public version, visit https://www.biostars.org.
[SOLVED] How to expand a data.frame?

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

Hello catechize.2.learn!

Closed as OP solved it.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.