Skip to content
Prev 378368 / 398502 Next

duplicates including first occurrence

... Alternatively(but probably less efficient):

## the indexing logical vector
with(mtcars, wt %in% wt[duplicated(wt)] )

cheers,
Bert




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 Mon, Jan 28, 2019 at 3:53 AM Rui Barradas <ruipbarradas at sapo.pt> wrote: