Consider
x <- c(1,2,3)
y <- c(1,0,3)
x == y
[1] TRUE FALSE TRUE
I would like to achieve the same result using lists:
x <- list(c(11,11) ,c(22,22), c(33,33) )
y <- list(c(11,11) ,c(21,22), c(33,33) )
x == y
But instead of
[1] TRUE FALSE TRUE
this gives the error message:
Error in x == y : comparison of these types is not implemented
How to find the vectorized difference between two lists?
Performance must be considered.