mob_check: Mobile Check

Description Usage Arguments Value Examples

View source: R/mob_check_function.R

Description

Description: Takes dataframe and a column as input and check for mobile number validation, following properties are currently being verified: 1) Length of mobile number must be 10 2) It should start from any number from 6 to 9 3) It should not cantain any alpha characters

Usage

1
2
3
4
5
6
mob_check(
  data,
  var = "CUSTOMER_MOBILE",
  replace = FALSE,
  stopNumbers = c(9999999999, 9999999990, 9999999993)
)

Arguments

data

dataframe to be operated on

var

variable number which contains mobile numbers inside the dataframe

replace

whether to delete or replace rows without mobile numbers, default: FALSE

stopNumbers

any user defined numbers want to replace or remove from the data

Value

dataframe with valid mobile numbers

Examples

1

Dreawe-Edge/dreaweRTools documentation built on March 17, 2020, 5:30 p.m.