clean_telephone {naaccr} | R Documentation |
Clean telephone numbers
Description
Clean telephone numbers
Usage
clean_telephone(number, keep_unknown = FALSE)
Arguments
number |
A character vector of telephone numbers. No spaces or punctuation, only numbers. |
keep_unknown |
Replace values for "unknown" with |
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
.
[Package naaccr version 2.0.2 Index]