Skip to content

Commit

Permalink
Add !=.agg_vec
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Sep 23, 2020
1 parent f98af16 commit db3fece
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

S3method("!=",agg_vec)
S3method("$<-",mdl_df)
S3method("==",agg_vec)
S3method("[",dcmp_ts)
Expand Down
5 changes: 5 additions & 0 deletions R/aggregate.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ Hint: If you're trying to compare aggregated values, use `is_aggregated()`.")
(e1$agg & e2$agg) | vec_equal(e1$x, e2$x, na_equal = TRUE)
}

#' @export
`!=.agg_vec` <- function(e1, e2) {
!(e1 == e2)
}

#' @export
is.na.agg_vec <- function(x) {
is.na(field(x, "x")) & !field(x, "agg")
Expand Down

0 comments on commit db3fece

Please sign in to comment.