str2dig | R Documentation |
A simple function to transform a string of digits into a numeric vector.
str2dig(x, split = "", ...)
## S4 method for signature 'character'
str2dig(x, split = "", ...)
## S4 method for signature 'list'
str2dig(x, split = "", num.cores = 1L, tasks = 0L, verbose = FALSE, ...)
x |
A character string or a list/ of character strings of numeric/digit symbols. |
split |
The same as in |
... |
Further parameters for |
num.cores , tasks |
Parameters for parallel computation using package
|
verbose |
If TRUE, prints the function log to stdout. |
A integer vector or a list of integer vectors.
Robersy Sanchez https://genomaths.com
## A integer vector
str2dig("12231456247")
## A list of integer vectors
str2dig(list(num1 = "12231456247", num2 = "521436897"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.