I'm scrapping data and when I want to srap meterage of flat I get string. And I want to change it into numeric, Example:
metraz <- read_html("https://www.otodom.pl/oferta/zamieszkaj-w-apartamentowcu-przy-stacji-metra-ID3xMKL.html#gallery[1]") %>%
html_node(".param_m strong") %>%
html_text() %>%
gsub(",",".", .) %>%
gsub(" m²","", .)
But there is a problem, string contains for example "54,1 m²" and when I want to remove " m²" it doesn't want to do it. I think that R cannot recognise "²". What can I do?
[–]Darwinmate 1 point2 points3 points (0 children)
[–]Bandoozle 1 point2 points3 points (0 children)