Skip to content

Commit

Permalink
minor tweak to make grf_quantiles work
Browse files Browse the repository at this point in the history
  • Loading branch information
dsweber2 committed Oct 1, 2024
1 parent 3892a53 commit 8d53567
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/dist_quantiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ Ops.dist_quantiles <- function(e1, e2) {
q1 <- e1
}
}
q <- vctrs::vec_arith(.Generic, q1, q2)
q <- vctrs::vec_arith(.Generic, q1, q2) %>% sort()
tau <- sort(tau)
new_quantiles(values = q, quantile_levels = tau)
}

Expand All @@ -293,3 +294,4 @@ is.na.dist_quantiles <- function(x) {
q <- field(x, "values")
all(is.na(q))
}

0 comments on commit 8d53567

Please sign in to comment.