[Rd] quantile always prints names

Rui Barradas ru|pb@rr@d@@ @end|ng |rom @@po@pt
Thu May 7 17:38:03 CEST 2026


Às 16:16 de 07/05/2026, Vincent Goulet via R-devel escreveu:
> Hi all,
> 
> ?quantile states:
> 
>     names: logical; if true, the result has a names attribute.  Set to
>            ‘FALSE’ for speedup with many ‘probs’.
> 
> Unless I'm missing something entirely, the "set to FALSE for speedup" part appears to no longer apply. I could trace it back to the introduction of the auxiliairy function 'format_perc':
> 
> commit cc003015a4aed96ed49b4f310209d3e75a48eeb3
> Author: maechler <maechler using 00db46b3-68df-0310-9c12-caf00c1e9a41>
> Date:   Wed Oct 15 15:55:42 2014 +0000
> 
>      format_perc() factored out of quantile.default()  + an RFC on "export"
> 
> I'm not sure if the intend is to modify the code to comply to the documentation, or the other way around. ;-) I'm willing to prepare a patch if informed.
> 
> HTH
> 
> v.
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
Hello,

I cannot reproduce this on R 4.6.0 / Windows 11, see the sample run.


set.seed(2026)
quantile(rnorm(10), names = FALSE)
# [1] -2.51608903 -0.94887840 -0.57021530  0.06397863  0.52058907


  sessionInfo()
# R version 4.6.0 (2026-04-24 ucrt)
# Platform: x86_64-w64-mingw32/x64
# Running under: Windows 11 x64 (build 22631)
#
# Matrix products: default
#   LAPACK version 3.12.1
#
# locale:
# [1] LC_COLLATE=Portuguese_Portugal.utf8 
LC_CTYPE=Portuguese_Portugal.utf8
# [3] LC_MONETARY=Portuguese_Portugal.utf8 LC_NUMERIC=C 

# [5] LC_TIME=Portuguese_Portugal.utf8
#
# time zone: Europe/Lisbon
# tzcode source: internal
#
# attached base packages:
# [1] stats     graphics  grDevices utils     datasets  methods   base
#
# loaded via a namespace (and not attached):
# [1] compiler_4.6.0


Hope this helps,

Rui Barradas



More information about the R-devel mailing list