clean_telephone: Clean telephone numbers

Description Usage Arguments Value

View source: R/data-item-cleaning.R

Description

Clean telephone numbers

Usage

1

Arguments

number

A character vector of telephone numbers. No spaces or punctuation, only numbers.

keep_unknown

Replace values for "unknown" with NA?

Value

A character vector with leading and trailing whitespace removed. If keep_unknown is FALSE, blanks and values representing unknown numbers or patients without a number are replaced with NA.


naaccr documentation built on Jan. 11, 2020, 9:17 a.m.