Skip to content
Prev 69882 / 398506 Next

cumsum on chron objects

On 5/17/05, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
Just to reply to my own post, it can actually be done even more
simply:

chron(na.locf(as.vector(x)))

Also in re-reading my post, I think the O in locf stands for observation 
rather than occurrence.