Remove any non-numerals from a phone number and shorten it to a fixed length
1 | tidy_phone(phone, length = 10, side = "right")
|
phone |
character vector of phone numbers |
length |
length to truncate number to (chopping off numerals from the right) |
side |
which side of the string do you want to take? if a lot of phone numbers have country codes which you can remove, then taking the rightmost digits (side = "right") will work |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.