Skip to content

Commit fb16699

Browse files
dajmcdondsweber2
authored andcommitted
closes #434
1 parent 3895f13 commit fb16699

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Pre-1.0.0 numbering scheme: 0.x will indicate releases, while 0.0.x will indicat
3232
- Add `step_climate()` to create "climate" predictor in forecast workflows
3333
- Add `climatological_forecaster()` to automatically create climate baselines
3434
- Replace `dist_quantiles()` with `hardhat::quantile_pred()`
35+
- Allow `quantile()` to threshold to an interval if desired (#434)
3536

3637
## Bug fixes
3738

R/quantile_pred-methods.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ vec_proxy_equal.quantile_pred <- function(x, ...) {
136136
#' "cubic" should fail for some reason.
137137
#'
138138
#' @returns a matrix with one row for each entry in `x` and one column for each
139-
#' value in `probs`. If either has length 1, a vector.
139+
#' value in `probs`
140140
#' @seealso [extrapolate_quantiles()]
141141
#' @export
142142
#' @importFrom stats quantile
@@ -166,7 +166,7 @@ quantile.quantile_pred <- function(x,
166166

167167
if (is.unsorted(probs)) probs <- sort(probs)
168168
middle <- rlang::arg_match(middle)
169-
drop(snap(quantile_internal(x, probs, middle), lower, upper))
169+
snap(quantile_internal(x, probs, middle), lower, upper)
170170
}
171171

172172

man/quantile.quantile_pred.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)