Skip to content

Commit

Permalink
Update compare method
Browse files Browse the repository at this point in the history
  • Loading branch information
dpseidel authored and vspinu committed Jul 21, 2018
1 parent 7c525cf commit f7a7c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/durations.r
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,13 @@ setMethod("Compare", c(e1 = "ANY", e2 = "Duration"),
#' @export
setMethod("Compare", signature(e1 = "Duration", e2 = "numeric"),
function(e1, e2) {
callGeneric(e1, as.duration(e2))
callGeneric(e1@.Data, e2)
})

#' @export
setMethod("Compare", signature(e1 = "numeric", e2 = "Duration"),
function(e1, e2) {
callGeneric(as.duration(e1), e2)
callGeneric(e1, e2@.Data)
})

#' @export
Expand Down

0 comments on commit f7a7c27

Please sign in to comment.