Question: This is a question about data analysis/web scraping in R. I'm looking at a wikipedia webpage. the title is List of french supercentenarians I want

This is a question about data analysis/web scraping in R.

I'm looking at a wikipedia webpage. the title is "List of french supercentenarians"

I want to load data into R and delete all columns except for the age column. The first entry is 1222 years, 164 days. The problem is that this is text. I wan to convert that into 122+164/365 years (basically a decimal)

And I want to do this for every row of that column and have it as a dataframe or a vector.

I'm guessing I have to use regular expressions? I'm not sure how

Please provide a code and explain how it works

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!