Re: [R] Equality of multiple vectors

2012-05-04 Thread Jan van der Laan
or identical(vec1, vec2) && identical(vec2, vec3) Jan Petr Savicky schreef: On Fri, May 04, 2012 at 12:53:12AM -0700, aaurouss wrote: Hello, I'm writing a piece of code where I need to compare multiple same length vectors. I've gone through the basic functions like identical() or all(),

Re: [R] Equality of multiple vectors

2012-05-04 Thread Petr Savicky
On Fri, May 04, 2012 at 12:53:12AM -0700, aaurouss wrote: > Hello, > > I'm writing a piece of code where I need to compare multiple same length > vectors. > > I've gone through the basic functions like identical() or all(), but they > only work for comparing 2 vectors. From 3 vectors on, it does

[R] Equality of multiple vectors

2012-05-04 Thread aaurouss
Hello, I'm writing a piece of code where I need to compare multiple same length vectors. I've gone through the basic functions like identical() or all(), but they only work for comparing 2 vectors. From 3 vectors on, it doesn't work . Example: Assuming vec1 <- c (1,2,3,4,5) vec2 <- c(1,2,3,4,