Please, I have this data.frame:
10 34 35 39 55 43
10 32 33 40 45 48
10 35 36 38 41 43
30 31 32 34 36 49
39 55 40 43 45 50
30 32 35 36 49 50
2 8 9 39 55 43
1 2 8 12 55 43
2 8 12 55 43 61
2 8 55 43 61 78
I'd like to find all sequences (where length > 2) for all rows and group by the frequency (where frequency > 1). In this case, need to show
sequence frequency
[39 55 43] 3
[10 35 43] 2
[32 36 49] 2
[30 32 36] 2
[30 32 36 49] 2
[ 2 8 55] 4
[ 2 8 55 43] 4
[ 2 8 55 43 61] 2
Is it possible to do this in R?