phone10: 10-digit US phone number

View source: R/phone10_zip5.R

phone10R Documentation

10-digit US phone number

Description

..

Usage

phone10(x, sep = "")

Arguments

x

character vector

sep

character scalar

Details

Function phone10 converts all US and Canada (+1) phone numbers to 10-digit.

Value

Function phone10 returns a character vector of nchar-10.

Examples

x = c(
 '+1(800)275-2273', # Apple
 '1-888-280-4331', # Amazon
 '000-000-0000'
)
phone10(x)
phone10(x, sep = '-')


ThomasJeffersonUniv documentation built on July 3, 2024, 5:08 p.m.