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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started