We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 272fc59 commit 3aba1ccCopy full SHA for 3aba1cc
R/bmerge.R
@@ -71,7 +71,7 @@ bmerge = function(i, x, icols, xcols, roll, rollends, nomatch, mult, ops, verbos
71
stopf("Incompatible join types: %s (%s) and %s (%s). Factor columns must join to factor or character columns.", xname, xclass, iname, iclass)
72
}
73
if (xclass == iclass) {
74
- if (length(icols)>1 && class(x[[xc]])=="Date" && class(i[[ic]])=="Date") {
+ if (length(icols)>1 && is(x[[xc]], "Date") && is(i[[ic]], "Date")) {
75
set(x, j=xc, value=as.double(x[[xc]]))
76
set(i, j=ic, value=as.double(i[[ic]]))
77
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