I have 8 string variables. How do I go from:
Frank-Jim - "" - Tom-Tom- Anna-Jake-Jake
To:
Frank-Jim-Tom-Anna-Jake
I want to remove the same names which are just beside each other (Tom and Jake in this case) and also the empty cells (""). Which code can I use?
I have no dataset. Thanks in advance.
Frank-Jim - "" - Tom-Tom- Anna-Jake-Jake
To:
Frank-Jim-Tom-Anna-Jake
I want to remove the same names which are just beside each other (Tom and Jake in this case) and also the empty cells (""). Which code can I use?
I have no dataset. Thanks in advance.

Comment