More eloquent solution for conditional filtering?
The code below works perfectly fine and outputs the data of interest. However, I am wondering if there is a better solution or different way think about the logic.
How to lengthen data in one column separated by semicolons, and repeat elements from the other column?
I have received a dataset in a .csv
table. The first three lines of the table looks like this: