`median()` does not work for `num()`
Closed this issue · 2 comments
mgirlich commented
median(tibble::num(1:3, notation = "eng"))
#> Error in `stop_vctrs()`:
#> ! `median.pillar_num()` not implemented.
Created on 2022-03-25 by the reprex package (v2.0.1)
This is because there is no median()
method for vctrs_vctr
(resp. it is defined to throw an error). Would be great to have a fallback for median()
(and probably some other methods like quantile()
) until this is figured out in r-lib/vctrs#87
krlmlr commented
Thanks. I'd rather solve this by documentation for now, e.g. in https://tibble.tidyverse.org/articles/numbers.html .
github-actions commented
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.