Skip to content
Prev 206023 / 398513 Next

help needed to find zero areas in a vector

Try this:

with(rle(x), lapply(lengths[values == 0], rep, x = 0))
On Mon, Jan 11, 2010 at 7:19 PM, boshao zhang <zboshao at yahoo.com> wrote: