Skip to content
Snippets Groups Projects
Commit 621c7dda authored by Christian Humer's avatar Christian Humer
Browse files

Make match work with missing cases.

parent 70d2f853
No related branches found
No related tags found
No related merge requests found
......@@ -347,6 +347,18 @@ public abstract class Match extends RBuiltinNode {
return match(RClosures.createLogicalToStringVector(x), table, nomatchObj, incomparables);
}
@Specialization
protected RIntVector match(RAbstractIntVector x, RAbstractStringVector table, Object nomatchObj, Object incomparables) {
naCheck.enable(x);
return match(RClosures.createIntToStringVector(x), table, nomatchObj, incomparables);
}
@Specialization
protected RIntVector match(RAbstractDoubleVector x, RAbstractStringVector table, Object nomatchObj, Object incomparables) {
naCheck.enable(x);
return match(RClosures.createDoubleToStringVector(x), table, nomatchObj, incomparables);
}
@Specialization
@SuppressWarnings("unused")
protected RIntVector match(RAbstractLogicalVector x, RAbstractLogicalVector table, Object nomatchObj, Object incomparables) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment