Question: Assume you have a data frame that contains a string variable called 'phone'. The phone numbers in this variable appear in ( ### ) ###

Assume you have a data frame that contains a string variable called 'phone'. The phone numbers in this variable appear in (###) ###-
#### or ###-###-#### format. Which feature of R can you use to isolate the area code (the three numbers between the parentheses or
the first three numbers)?
A regular expression.
A string operation.
It is not possible to do this using R.
A mathematical operation.
 Assume you have a data frame that contains a string variable

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!