powered by
This function matches the positions of two numeric vectors as good as possible.
match_all(x, y)
An integer vector of length length(x) with the positions of y
integer
length(x)
y
in x.
x
A numeric vector.
numeric
Another numeric vector of the same length as x.
if (FALSE) { x <- c(-1, 0, 1) y <- c(0.1, 2, -1.2) match_all(x = x, y = y) }
Run the code above in your browser using DataLab