phone_it_in: Easily clean up and standardize phone numbers

View source: R/phone_it_in.R

phone_it_inR Documentation

Easily clean up and standardize phone numbers

Description

This function takes phone numbers in multiple formats and makes them consistent.

Usage

phone_it_in(phone, invalid = "")

Arguments

phone

A vector of numbers that are supposed to be phone numbers.

invalid

A string that you want to assign to any numbers identified as invalid.

Details

Phone numbers can be either 7 or 10 digits and will be returned with that same number of digits.

Value

A vector of the same length as the input vector, reformatted.

Examples

x <- c("1234567", "123-4567.890", "1.23456", 1234567)
phone_it_in(x)

Ingenuity-Inc/artlookR documentation built on May 18, 2022, 12:33 a.m.