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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to