Question: How would I be able to do the following in R coding: I would like to create a function that would take values from a

How would I be able to do the following in R coding:
I would like to create a function that would take values from a txt file and output the rows containing valid phone numbers from the file. Valid phone numbers to take in are the following:
### ### ####
###-###-####
###.###.####
(###) ###-####
And # is a digit from 0-9
The txt file is in this form :
Tower
646-890-7689
Jump
678
What's
888.888.8888
1234

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!