Question: Using R Extract the numbers (return only integers) that are followed by the units 'ml' or 'lb' in the following text. myText

Using R

Extract the numbers (return only integers) that are followed by the units 'ml' or 'lb' in the following text.

myText <- 'At 10am we had 40ml of water, 5 lb of meat, 3lb of salt and 20 apples.'

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!