Description Usage Arguments Details Value Author(s) See Also Examples

Takes an integer or vector of integers and returns a vector, list, or matrix of the individual digits (decimal) that make up that number.

1 |

`x` |
An integer or vector of integers (if not integer, the fractional part will be ignored) |

`n` |
The number of digits to be returned, this can be used to place 0's
in front of smaller numbers. If this is less than the number of
digits then the last |

`simplify` |
Should |

This function transforms an integer (or real ignoring the fractional part) into the decimal digits that make of the decimal representation of the number using modular mathematics rather than converting to character, splitting the string, and converting back to numeric.

If `x`

is of length 1 then a vector of the digits is returned.

If `x`

is a vector and `simplify`

is `FALSE`

then a list
of vectors is returned, one element for each element of `x`

.

If `x`

is a vector and `simplify`

is `TRUE`

then a
matrix with 1 column for each element of `x`

.

Greg Snow [email protected]

1 2 3 4 5 6 7 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.