align.around.decimal.point: Pad Numeric Vector Around Decimal Point

View source: R/align.around.decimal.point.r

align.around.decimal.pointR Documentation

Pad Numeric Vector Around Decimal Point

Description

Pads a vector of numeric values so that the decimal is at the same ordinal location.

Usage

align.around.decimal.point(x, sep = '\\.', len)

Arguments

x

A vector of numbers.

sep

The decimal separator.

len

The total character width desired in the formatted field.

Value

A character vector with members of length len, with sep located in the same position of each member.

Examples

align.around.decimal.point(c(1,100, 0.01))

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.