search for: 333389

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

Did you mean: 333989
2006 Jan 12
1
I think simple R question
I have a vector x with #'s ( 1 or -1 in them ) in it and I want to "mark" a new vector with the sign of the value of the a streak of H where H = some number ( at the next spot in the vector ) So, say H was equal to 3 and I had a vector of [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 1 -1 1 1 1 -1 1 1 -1 -1 then, I would want a function to