I am asking for some help writing a function.
The function works on TableData, that looks like the following:
Col1 Col2 Col3
0 3 -2
0 2 0
-1 0 0
4 -6 0
0 4 -1
0 -3 0
0 3 0
2 -1 0
6 0 7
-2 -1 0
... et cetera
The function needs to return FALSE if any column has more than 3 consecutive zeroes, or more than 3 consecutive non-zeroes. Otherwise, the function returns TRUE.
In the table shown, FALSE is returned because of the (-6, 4, -3, 3) that appears in the second column.
Thanks in advance for any advice.
The function works on TableData, that looks like the following:
Col1 Col2 Col3
0 3 -2
0 2 0
-1 0 0
4 -6 0
0 4 -1
0 -3 0
0 3 0
2 -1 0
6 0 7
-2 -1 0
... et cetera
The function needs to return FALSE if any column has more than 3 consecutive zeroes, or more than 3 consecutive non-zeroes. Otherwise, the function returns TRUE.
In the table shown, FALSE is returned because of the (-6, 4, -3, 3) that appears in the second column.
Thanks in advance for any advice.