Skip to contents

Performs case-insensitive matching, like match(), but ignores letter case.

Usage

x %match% table

Arguments

x

Character vector to match.

table

Character vector of values to match against.

Value

An integer vector of the positions of matches of x in table, like match(). Returns NA for non-matches.

Examples

c("tp53", "BRCA1", "egfr") %match% c("TP53", "EGFR", "MYC")
#> Error in c("tp53", "BRCA1", "egfr") %match% c("TP53", "EGFR", "MYC"): could not find function "%match%"
# Returns: 1 NA 2