search for: follewd

Displaying 1 result from an estimated 1 matches for "follewd".

2011 Jul 02
5
How many times occurs
...have a data matrix likein "input.txt" 8 9 2 5 4 5 8 5 6 6 8 9 2 8 9 2 8 9 2 1 8 9 2 5 4 5 8 5 6 4 8 9 2 5 4 5 8 5 6 6 8 9 2 8 9 2 8 9 2 1 8 9 2 5 4 5 8 9 2 2 In this example will be an 6x10 matrix (or data frame) I want to detect how many times in a row appears this combination 8 follewd by 9 followed by 2, and create a new matrix with only this number of occurs then if this number is less than "n" I keep the row. For example in the last row the number n will be 2 because "series" 8 9 2 appears 2 times in the same row. I tried this, but doesn´t works....also tr...