Description Usage Arguments Value Author(s) Examples
Get initial numeric part from an object regardless vector, matrix or data frame. Elements beginning with numeric part will be extracted, else will be dropped.
1 | getInitNum(x, ...)
|
x |
Object. vector, matrix or data frame. |
... |
Further arguments to be passed to the next method. |
An object of the same structure with x
Yiying Wang, wangy@aetna.com
1 2 3 4 5 | ## Not run:
getInitNum(c("33d", "3.2%", "2d2", "d", "$43", "\uFFE543"))
# return c(33.000, 0.032, 2.000, NA, 43.000, 43.000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.