normal_phone {campfin} | R Documentation |
Normalize phone number
Description
Take US phone numbers in any number of formats and try to convert them to a standard format.
Usage
normal_phone(
number,
format = "(%a) %e-%l",
na_bad = FALSE,
convert = FALSE,
rm_ext = FALSE
)
Arguments
number |
A vector of phone number in any format. |
format |
The desired output format, with |
na_bad |
logical; Should invalid numbers be replaced with |
convert |
logical; Should |
rm_ext |
logical; Should extensions be removed from the end of a number. |
Value
A normalized telephone number.
Examples
normal_phone(number = c("916-225-5887"))
[Package campfin version 1.0.11 Index]