Skip to content
Prev 388439 / 398502 Next

add a variable a data frame to sequentially count unique rows

Your example makes no sense (to me, anyway). Please check it
carefully. Note that the count in rows 2 and 3 increment but the
counts in rows 5-7 or rows 8-9 do not. So your specification seems
inconsistent to me.

Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Fri, Jul 2, 2021 at 3:27 PM Yuan Chun Ding <ycding at coh.org> wrote:
Message-ID: <CAGxFJbREoFz-QRFgCNT3zrwkCeUYQAzUGiCkoM-eY2T6MeQS7w@mail.gmail.com>
In-Reply-To: <SJ0PR02MB7645A67CD8ACF60FA841FE87D41F9@SJ0PR02MB7645.namprd02.prod.outlook.com>