Skip to content
Prev 67339 / 398521 Next

Plotting the occassional second label

"Lisbeth Riis" <lriis at scarabconsult.com> writes:
I don't think this does what I think you think it does...

Consider
[1]  TRUE FALSE FALSE FALSE
Warning message:
longer object length
        is not a multiple of shorter object length in: x == unique(x)

unique(x) is c(1,2,3) so you end up with c(1,1,2,3)==c(1,2,3,1)

Were you perhaps intending
[1]  TRUE FALSE  TRUE  TRUE

?