decomposeNumber: Decompose a number.

Description Usage Arguments Details Examples

Description

Break apart a multidigit number and return a matrix of its components.

Usage

1
decomposeNumber(x, signout = FALSE)

Arguments

x

A number or a character string that contains digits as alphanumeric characters and optionnaly a sign mark and a decimal mark.

signout

logical. If TRUE the sign of the number is returned.

Details

If a sign mark is detected, it will be removed from the matrix returned but retuned if signout is TRUE.

Examples

1
2
3
4
decomposeNumber(983)
decomposeNumber("34,53")
decomposeNumber("092092EKXEKE")
decomposeNumber(-536836.3, signout=TRUE)

KevCaz/decomposenumbers documentation built on May 8, 2019, 4:49 p.m.