Skip to content
Prev 27857 / 63424 Next

Argument "nomatch" matched by multiple actual arguments ... %in% -> match?!?

Hi,

a follow up.  If I replace all 'foo %in% bar' in setMethodS3.default()
with is.element(foo, bar) the error goes away.  Here is is.element():
function (el, set)
match(el, set, 0) > 0
<environment: namespace:base>

Not much of a difference compared to "%in%"(),
function (x, table)
match(x, table, nomatch = 0) > 0
<environment: namespace:base>

except that the 'nomatch' argument is not named in is.element().
Also, none of calls used variable names 'x', 'table', 'el', 'set', or
'nomatch'.

/Henrik
On Thu, Mar 6, 2008 at 2:27 AM, Henrik Bengtsson <hb at stat.berkeley.edu> wrote: