Skip to content

Commit

Permalink
Speed up cdc baseline: quantile(...., names = FALSE)
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslogan committed Oct 5, 2023
1 parent 0905ba4 commit b1c34cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/layer_cdc_flatline_quantiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ propagate_samples <- function(
if (symmetrize) {
r <- c(r, -r)
}
samp <- quantile(r, probs = c(0, seq_len(nsim - 1)) / (nsim - 1), na.rm = TRUE)
samp <- quantile(r, probs = c(0, seq_len(nsim - 1)) / (nsim - 1),
na.rm = TRUE, names = FALSE)
res <- list()

raw <- samp + p
Expand Down

0 comments on commit b1c34cb

Please sign in to comment.