Hi Group,

 I have a question on Stringr package

 I have a table like this
 X     Y
 ab    su - di
 ac    pi - tu
 ad    tu - tu

 I want output like this
  X        Y
ab         su
ab         di
ac         pi
ac         tu
ad         tu
ad         tu

 I am wondering if this operation can be done using stringr package (only)
?

        [[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