[R] test whether all elements of a vector are identical

Jannis bt_jannis at yahoo.de
Thu Dec 16 15:23:33 CET 2010


Thanks Tal. Sometimes easy solutions are close by but hard to find when 
one is focused on the wrong direction :-)!

Jannis

Tal Galili schrieb:
> How about:
> length(unique(vector)) >1
>
> ?
>
>
>
> ----------------Contact
> Details:-------------------------------------------------------
> Contact me: Tal.Galili at gmail.com |  972-52-7275845
> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
> www.r-statistics.com (English)
> ----------------------------------------------------------------------------------------------
>
>
>
>
> On Thu, Dec 16, 2010 at 4:17 PM, Jannis <bt_jannis at yahoo.de> wrote:
>
>   
>> identical
>>     
>
>



More information about the R-help mailing list