Learn R Programming

lares (version 4.7)

formatNum: Nicely Format Numerical Values

Description

This function lets the user format numerical values nicely

Usage

formatNum(x, decimals = 2, type = 2, scientific = FALSE)

Arguments

x

Numerical Vector

decimals

Integer. Amount of decimals to display

type

Integer. 1 for International standards. 2 for American Standards.

scientific

Boolean. Scientific notation

See Also

Other Data Wrangling: balance_data, calibrate, categ_reducer, cleanText, date_feats, dateformat, formatTime, holidays, impute, left, normalize, numericalonly, ohse, one_hot_encoding_commas, rbind_full, removenacols, removenarows, replaceall, right, textFeats, textTokenizer, vector2text, year_month, year_week