I have a huge problem. I would like to isolate part of an array where the value is 1 for several consecutive months. I know how to calculate the maximum number of consecutive months but I would like to find out when this started. For example see below:
1. The first row I know there are 8 consecutive months and it starts on April.
2. The second row, there are two groups of consecutive months, but I am currently interested in the bigger group of 4 elements. I would like for it to spit out "september"
Jan Feb Mar Apr May June July Aug Sept Oct Nov Dec
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1
Thanks! This is my first post so I hope this isn't a silly question.
Bookmarks