Hunting for phone numbers
For your first task you are going to pull out the phone numbers from this vector of contact information:
contact
You'll assume the phone numbers you are looking for follow the American standard of a three digit area code, a three digit exchange and then a four digit number, but each part could be separated by spaces or various punctuation symbols.
이 연습은 강의의 일부입니다
String Manipulation with stringr in R
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Create a three digit pattern
three_digits <- ___
# Test it
str_view_all(contact, pattern = three_digits)