match_all: Best-possible match of two numeric vectors

View source: R/utils.R

match_allR Documentation

Best-possible match of two numeric vectors

Description

This function matches the positions of two numeric vectors as good as possible.

Usage

match_all(x, y)

Arguments

x

A numeric vector.

y

Another numeric vector of the same length as x.

Value

An integer vector of length length(x) with the positions of y in x.

Examples

## Not run: 
x <- c(-1, 0, 1)
y <- c(0.1, 2, -1.2)
match_all(x = x, y = y)

## End(Not run)

fHMM documentation built on Oct. 12, 2023, 5:10 p.m.