Skip to content
Prev 391164 / 398506 Next

Inserting missing seq number

That is not only an elegant solution, but exactly what the OP
requested. I assume it can be generalized:

approx(x=df$seq,df$count,xout=min(df$seq):max(df$seq),method="constant",f=0)

Jim
On Thu, Mar 31, 2022 at 2:41 AM Bill Dunlap <williamwdunlap at gmail.com> wrote: