seq_approximate: Approximately matching sequence

View source: R/seq.R

seq_approximateR Documentation

Approximately matching sequence

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

seq_approximate(x, y)

Arguments

x

A given vector to be matched

y

A target vector to calculate absolute approximation

See Also

seq_along, rep_each

Examples

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

caesar0301/movr documentation built on June 18, 2022, 2:37 a.m.