I`ve got some problems filtering for duplicate elements in a string. My data look similar to this:
idvisit path
1 1,16,23,59,16
2 2,14,19,14
3 5,19,23
4 10,21
5 23,27,29,23
I have a column containing an unique ID and a column containing a path for web page navigation. The right column contains some cases, where pages were accessed twice or more often, but some different pages are between these accesses. I just want to filter() the rows, where pages occur twice or more often and at least one page is in bettween the two accesses, so the data should look like this.
idvisit path
1 1,16,23,59,16
2 2,14,19,14
5 23,27,29,23
I just want to remove the rows that match the conditions. I really dont know how to handle a String with using a variable for the many different numbers.