Skip to content

Commit 6143ef7

Browse files
committed
add comment
1 parent 7195697 commit 6143ef7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/bmerge.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ bmerge = function(i, x, icols, xcols, roll, rollends, nomatch, mult, ops, verbos
8181
}
8282
stopf("Incompatible join types: %s (%s) and %s (%s). Factor columns must join to factor or character columns.", xname, x_merge_type, iname, i_merge_type)
8383
}
84+
# we check factors first to cater for the case when trying to do rolling joins on factors
8485
if (x_merge_type == i_merge_type) {
8586
if (verbose) catf("%s has same type (%s) as %s. No coercion needed.\n", iname, x_merge_type, xname)
8687
next

0 commit comments

Comments
 (0)