powered by
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, ...)
Vector of character or numeric values that contain converted values
Numeric vector
Integer. Single numeric value, specifying number of significant figures to show. Range 1 to 6.
Boolean. Transform abbreviated number into numeric?
Additional parameters.
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()
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)
Run the code above in your browser using DataLab