Description Usage Arguments Value Examples
Compare two vectors for equality element by element
1 | VbetterComp(x, y)
|
x |
A numeric vector |
y |
A numeric vector of the same length as |
A logical vector where each position indicates whether the values in those positions of the input vectors are equal. NAs are considered equal.
1 2 3 4 5 6 7 8 9 10 11 12 | ex1 = 6:10
ex2 = (1:5)*2
ex3 = c(1, 10, NA, 6, 10)
ex4 = c(2, NA, NA, 6, 5)
VbetterComp(ex1, ex2)
VbetterComp(ex1, ex3)
VbetterComp(ex1, ex4)
VbetterComp(ex2, ex3)
VbetterComp(ex2, ex4)
VbetterComp(ex3, ex4)
VbetterComp(ex3, NA)
VbetterComp(ex3, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.