Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is paper chromatography?

Answered: 1 week ago

Question

Explain the cost of capital.

Answered: 1 week ago