Skip to content
Prev 76341 / 398502 Next

Testing if all elements are equal in a vector/matrix

Yes, and I mistakenly thought this was comparing two objects, and that is not the case.  

-----Original Message-----
From: Francisco J. Zagmutt [mailto:gerifalte28 at hotmail.com] 
Sent: Monday, August 29, 2005 4:05 PM
To: Doran, Harold; vincent.goulet at act.ulaval.ca; r-help at stat.math.ethz.ch
Subject: Re: [R] Testing if all elements are equal in a vector/matrix

Hi Doran

The documentation for isTRUE reads 'isTRUE(x)' is an abbreviation of 'identical(TRUE,x)'  so actually Vincent's solutions is "cleaner" than using identical :)

Cheers

Francisco