removeDup: Remove invalid phone numbers in multiple columns

removeDupR Documentation

Remove invalid phone numbers in multiple columns

Description

Invalid phone numbers in a specific record:

  1. all phone numbers that are not equal to 8 digits, including no phone numbers at all (all zero digit).

  2. all phone numbers that start from number zero or one.

  3. all phone numbers that duplicate between other records, excluding phone numbers duplicate within the same record.

Usage

removeDup(df, fields, details = "all")

Arguments

df

data frame containing at least two rows and two columns of phone numbers.

details

optional, default value is all which returns extra information. onlyFields omits such information.

field

character vector containing the field names of phone numbers in df.

Value

data frame


maxleungtszchun/customerAnalytics documentation built on July 27, 2023, 9:24 a.m.