pmatch with an additional
ignoreCase argument, returning
a name not an index like
pmatch (and returning
a name if supplied a number, unlike
pmatch, which coerces
the input to numeric).
# NOT RUN {yr <- pmatchIC('Yr', c('y1', 'yr', 'y2'))
# }# NOT RUN {all.equal('yr', yr)
# }# NOT RUN {# integerm2 <- pmatchIC(2, table=letters)
# }# NOT RUN {all.equal(m2, 'b')
# }