The function compares vectors with one another. The main purpose is to print a useful representation of differences (and return differences, usually invisibly).
The function is still experimental and will likely change.
Returns
depends on how the function is called; typically a list
Author(s)
Enrico Schumann
See Also
neighbourfun
Examples
x <- runif(5)>0.5nb <- neighbourfun(type ="logical")compare_vectors(x, nb(x))## 01010## |## 00010## The vectors differ in 1 place.nb <- neighbourfun(type ="logical", stepsize =2)compare_vectors(x, nb(x))## 01010## | |## 11011## The vectors differ in 2 places.