search for: ur0

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

Did you mean: cr0
2011 Aug 22
1
Counting Elements Conditionally
R - I have 3 variables with data below. Variable "Rev" is a vector that changes from 1 to 2, 2 to 3, etc.... Variable "FF" is a binary variable with 1's and 0's. Variable "bin" is a different binary variable with 1's and 0's. I want to calculate the number of elements: 1. Starting with the first element where Rev switches (i.e. 1 to 2) 2. The