match_s: ordered match

View source: R/package.R

match_sR Documentation

ordered match

Description

match x indices in terms of y

Usage

match_s(x, y)

Arguments

x

A vector

y

A vector

Value

a vector of indices of x ordered by y

Examples

match_s(c(1,3,5,7,9), c(9, 5, 3))
match_s(c(1,3,5,7,9), c(3, 5, 9))

kevinmhadi/khtools documentation built on Jan. 16, 2025, 4:18 p.m.