Skip to content
Prev 385470 / 398506 Next

how to create a sequence to consecutive values

Actually, I prefer Jeff's use of diff() . Hadn't thought of that.

However, note that, unsurprisingly,  NA's mess up both: The rle() method
fails with an error and the diff() method gives the wrong answer.

Cheers,
Bert


On Fri, Aug 28, 2020 at 8:48 AM Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
wrote: