[R] Equality of multiple vectors
aaurouss
antoine.aurousseau at gmail.com
Fri May 4 09:53:12 CEST 2012
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,5)
vec3 <- c(1,2,3,4,4)
identical (vec1,vec2,vec3) returns TRUE, since the 2 first vectors are
equal. I need a function that returns FALSE if one of the vectors is
different.
Any idea ?
Antoine
--
View this message in context: http://r.789695.n4.nabble.com/Equality-of-multiple-vectors-tp4608015.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list