powered by
This function checks if two vectors are equal, by comparing each cell and quits when the first mismatch occurs.
BASIX.equal(a,b)
first vector
second vector
Native R functions compare every entry of the entired vectors,
The R solution would be:
all(a==b)
The function can be applied to numeric as well as character vectors
# NOT RUN { a <- 1:10 b <- a b[2] <- 9 BASIX.equal(a,b) # }
Run the code above in your browser using DataLab