[R] Find each time a value changes
mudiver1200 at yahoo.com
Thu Feb 11 02:58:40 CET 2010
I am trying to find each time a value changes in a dataset. The numbers are variables for day vs. night values, so what I am really getting is the daily sunrise and sunset.
A simplified example is the following:
I would like to know each time the numbers change.
Correct answer should be:
I would appreciate any help or suggestions. It seems like it should be simple but I’m stuck!
Department of Zoology
University of Hawaii
More information about the R-help