format_number: Sets first letter of a string to capital

View source: R/string_tools.R

format_numberR Documentation

Sets first letter of a string to capital

Description

Sets first letter of a string to capital

Usage

format_number(x, number_decimals = 0, format_EN = FALSE,
  scale = c("normal", "k", "M"))

Arguments

x

The string you want to apply the formatting to

number_decimals

The number of decimals you want to display (default = 0)

format_EN

use EN notation; meaning '.' a decimal and ',' as thousands seperators.

scale

Used when you want to format the amount in scales (regular, per thousands or millions)

Value

A formatted string

Examples

format_number(1000000.01)

mark-me/graydon.package documentation built on Nov. 14, 2023, 5:31 p.m.