Skip to content
Prev 313034 / 398503 Next

duplicated() with long vectors

Hi,

duplicated() doesn't just look at consecutive values, but anywhere in
the object. Since your 12320-element vector has only 48 separate
values, and all of them occur before the last 30 elements, so
duplicated() returns TRUE.

You might be looking for something involving rle(). What are you
trying to accomplish?

Sarah

On Wed, Dec 5, 2012 at 3:53 PM, Stephen Politzer-Ahles
<politzerahless at gmail.com> wrote:
--
Sarah Goslee
http://www.functionaldiversity.org