If I have a wide data set where each row represents a student and the columns show the years within which they got punished eg: Student Year1 Year2 Year3 Year4 A 1 1 - 1 B - - 1 1 C 1 1 1 1 So I need a code that can show me the number of students who have been punished across 4,3,2 consecutive years.
... View more