mschubert / ebits

R bioinformatics toolkit incubator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

%or% for length(lhs) > 1

mschubert opened this issue · comments

In base:%or%:

else if (length(a) > 1)
    mapply(cmp, a, b)

Is that what we intend to do?

I know I committed this, but shouldn't it rather be:

else if (length(a) > 1)
    a

Actually, I was wrong. I'd argue we do want vector- and matrix based %or%s.

But the implementation right now is not ideal.