whichState: whichState

Description Usage Arguments Details Value Author(s) Examples

View source: R/whichState.R

Description

Find out which American State is the phone number from via US Area Code.

Usage

1
whichState(phoneNumber, usa = TRUE)

Arguments

phoneNumber

US Phone Number: A string of 10 digits. There should be no spacing or punctuations between digits

usa

Set to TRUE by default. If usa is not true, the function cannot be executed because the US State Area codes only work for US Phone Numbers

Details

This function has been designed to extract the first 3 digits of the provided phone number, match them to the US State Area Codes and to find out which state the phone number is from. The phone number provided has to be a proper US phone number with 10 digits.

Value

The US State where the Phone Number is from

Author(s)

Gerald Lee

Examples

1
whichState(1234567890, usa=TRUE)

gl2668/whichState documentation built on Nov. 26, 2019, 12:13 a.m.