getInitNum: Get Initial Numeric Part from An Object

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1

Arguments

x

Object. vector, matrix or data frame.

...

Further arguments to be passed to the next method.

Value

An object of the same structure with x

Author(s)

Yiying Wang, wangy@aetna.com

Examples

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)

madlogos/aseshms documentation built on May 21, 2019, 11:03 a.m.