Skip to content

Commit 3b8c889

Browse files
committed
style only
1 parent 0d133df commit 3b8c889

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

R/dist_quantiles.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ quantile_extrapolate <- function(x, tau_out, middle) {
209209
Q <- stats::splinefun(tau, qvals, method = "hyman")
210210
quartiles <- Q(c(.25, .5, .75))
211211
},
212-
error = function(e) { return(NA) }
212+
error = function(e) {
213+
return(NA)
214+
}
213215
)
214216
}
215217
if (middle == "linear" || any(is.na(result))) {
@@ -247,7 +249,9 @@ logit <- function(p) {
247249
# extrapolates linearly on the logistic scale using
248250
# the two points nearest the tail
249251
tail_extrapolate <- function(tau_out, qv) {
250-
if (nrow(qv) == 1L) return(rep(qv$v[1], length(tau_out)))
252+
if (nrow(qv) == 1L) {
253+
return(rep(qv$v[1], length(tau_out)))
254+
}
251255
x <- logit(qv$q)
252256
x0 <- logit(tau_out)
253257
y <- qv$v

0 commit comments

Comments
 (0)