Skip to content

Commit 3aba1cc

Browse files
committed
fix lint
1 parent 272fc59 commit 3aba1cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/bmerge.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ bmerge = function(i, x, icols, xcols, roll, rollends, nomatch, mult, ops, verbos
7171
stopf("Incompatible join types: %s (%s) and %s (%s). Factor columns must join to factor or character columns.", xname, xclass, iname, iclass)
7272
}
7373
if (xclass == iclass) {
74-
if (length(icols)>1 && class(x[[xc]])=="Date" && class(i[[ic]])=="Date") {
74+
if (length(icols)>1 && is(x[[xc]], "Date") && is(i[[ic]], "Date")) {
7575
set(x, j=xc, value=as.double(x[[xc]]))
7676
set(i, j=ic, value=as.double(i[[ic]]))
7777
if (verbose) catf("%s and %s are both Dates. R does not guarentee a type for Date internally, hence, coercing to double.\n", iname, xname)

0 commit comments

Comments
 (0)