mapidx: Get matched index

Description Usage Arguments Value Examples

Description

Map elements from one set to another, and return the index

Usage

1
mapidx(query, subject, na.rm = TRUE, sort = TRUE, uniq = TRUE)

Arguments

query, subject

each of them is a vector

na.rm

remove NA from result?

sort

sort result?

uniq

remove duplicated value?

Value

a integer vector

Examples

1
mapidx(c('h','e','l','l','o'), c('w','o','r','l','d'))

jzsh2000/jzshr documentation built on May 20, 2019, 6:29 a.m.