Skip to content
Prev 385758 / 398503 Next

Split

To be clear, I think Rui's solution is perfectly fine and probably better
than what I offer below. But just for fun, I wanted to do it without the
lapply().  Here is one way. I think my comments suffice to explain.
ID1 ID2   text    1  2
1  A1  B1 NONE_. NONE  .
2  A1  B1  cf_12   cf 12
3  A1  B1 NONE_. NONE  .
4  A2  B2  X2_25   X2 25
5  A2  B3  fd_15   fd 15
Cheers,
Bert

Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Sep 22, 2020 at 12:19 PM Rui Barradas <ruipbarradas at sapo.pt> wrote: