[x] Search for duplicates among the existing issues (both open and closed).
Proposal
First of all, thanks for providing the vec_fmt_*() functions! This is going to be so useful when making quarto/rmarkdown reports.
For non-English users, there's a good chance that the existing suffixes (K, M, B, T) for vec_fmt_number(), etc. is not a good choice for local readers. However, currently there's no way to change the scaling factors along with the suffixing characters. I suggest allowing the use of named vectors for the suffixing option to achieve the goal. For example, to define a list of large numbers in ten thousands (with suffix "w") and a hundred millions (with suffix "y"), one would write: vec_fmt_number(x, suffixing = c("w" = 10000, "y" = 100000000)).
Prework
Proposal
First of all, thanks for providing the
vec_fmt_*()
functions! This is going to be so useful when making quarto/rmarkdown reports.For non-English users, there's a good chance that the existing suffixes (K, M, B, T) for
vec_fmt_number()
, etc. is not a good choice for local readers. However, currently there's no way to change the scaling factors along with the suffixing characters. I suggest allowing the use of named vectors for thesuffixing
option to achieve the goal. For example, to define a list of large numbers in ten thousands (with suffix "w") and a hundred millions (with suffix "y"), one would write:vec_fmt_number(x, suffixing = c("w" = 10000, "y" = 100000000))
.