R/standardize_mobile.R

Defines functions standard_phone standard_mobile_intl standardize_mobile

standardize_mobile <- function(mobraw) {

  sub("^.*4([0-9][0-9]) ?([0-9]{3}) ?([0-9]{3}).*$",
      "+614\\1\\2\\3",
      mobraw,
      perl = TRUE)
}

standard_mobile_intl <- function(mobraw) {
  .Call("CStandardMobile", mobraw, TRUE, TRUE, PACKAGE = packageName())
}

standard_phone <- function(mobile, home_phone) {

}
HughParsonage/dhhs documentation built on Dec. 17, 2021, 11:22 p.m.