I have two vectors:a = c(1,2,3), b = c(1,2,3)
a = c(1,2,3)
b = c(1,2,3)
I want to test whether a is exactly the same as b. I know the resul
a
b
In addition to the answer above; you could also consider the package 'compare'.
library(compare) compareEqual(a,b)#TRUE