Skip to content

Commit b1c34cb

Browse files
committed
Speed up cdc baseline: quantile(...., names = FALSE)
1 parent 0905ba4 commit b1c34cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/layer_cdc_flatline_quantiles.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ propagate_samples <- function(
245245
if (symmetrize) {
246246
r <- c(r, -r)
247247
}
248-
samp <- quantile(r, probs = c(0, seq_len(nsim - 1)) / (nsim - 1), na.rm = TRUE)
248+
samp <- quantile(r, probs = c(0, seq_len(nsim - 1)) / (nsim - 1),
249+
na.rm = TRUE, names = FALSE)
249250
res <- list()
250251

251252
raw <- samp + p

0 commit comments

Comments
 (0)