amatch: Approximately match

Description Usage Arguments Examples

Description

Match x to y approximately, and return the index of y, which is mostly near to each value in x. A variate of match() or

Usage

1
amatch(x, y)

Arguments

x

A given vector to be matched

y

A target vector to calculate absolute approximation

Examples

1
2
3
a <- c(1,2,3)
b <- c(0.1, 0.2, 0.5)
amatch(a, b)

caesar0301/omniR documentation built on May 13, 2019, 10:38 a.m.