#
# Compare different "log.fun" parameters:
mgrepl(c("a","b"), c("ab","ac","bc"), any)
mgrepl(c("a","b"), c("ab","ac","bc"), all)
mgrepl(c("a","b"), c("ab","ac","bc"), all, use.which = TRUE)
mgrepl(c("a","b"), c("ab","ac","bc"), identity)
mgrepl(letters[1:3], c("ax","xab","xbc"), function (x) sum(x)>1)
#
Run the code above in your browser using DataLab