| num_abbr | R Documentation |
This function converts a numeric vector's values into their abbreviated character equivalent, i.e. 100E6 into 100M and viceversa.
num_abbr(x, n = 3, numeric = FALSE, ...)
x |
Numeric vector |
n |
Integer. Single numeric value, specifying number of significant figures to show. Range 1 to 6. |
numeric |
Boolean. Transform abbreviated number into numeric? |
... |
Additional parameters. |
Vector of character or numeric values that contain converted values
Other Data Wrangling:
balance_data(),
categ_reducer(),
cleanText(),
date_cuts(),
date_feats(),
file_name(),
formatHTML(),
holidays(),
impute(),
left(),
normalize(),
ohe_commas(),
ohse(),
quants(),
removenacols(),
replaceall(),
replacefactor(),
textFeats(),
textTokenizer(),
vector2text(),
year_month(),
zerovar()
num_abbr(rnorm(10) * 1e6)
num_abbr(rnorm(10) * 1e6, n = 1)
num_abbr(c("3K", "-58.3M", NA, 1), numeric = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.