fix_mobile | R Documentation |
Fixes up local mobile phone numbers to a uniform text format.
fix_mobile(x)
x |
A character vector of numerical strings. |
This format is specific to that used in a given location - for
now the function is useful only for Nigeria mobile numbers, which come in
the format expressed by the regex pattern "^0[7-9][0-1][0-9]{8}$"
.
The updated vector, usually the column of a data frame.
There is an option for producing warnings on any mobile number entries
that may have been removed from the vector, by setting the option
verbose
to TRUE
.
fix_mobile("803-123-4567") # Adds leading '0" and removes separators
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.