I have a df in R, where one of the columns is long html sting that contains alot of arguments. I want to extract specific values into news columns:
This is what I have:
name <- c("John", "Max")
bio <- c("<status>1</status><profession>Revisor</professio>", "<status>1</status><born>19.06.1995</born><profession>Tech</professio>" )
df <- data.frame(name, bio)
This is what I want:
name <- c("John", "Max")
status <- c(1,1)
profession <- c("Revisor", "Tech")
df <- data.frame(name, status, profession)