Hello friends, I am trying to create a cycle from a database that says "fincaraizcali1", I would like the cycle to go through column 4, and be able to save each of the outputs in a new variable, however, there is no achievement, I would greatly appreciate your help.
Prob_enfermas=for (i in 1:dim(fincaraizcali1[4]){
pageurl= fincaraizcali1[4]
htmlpage <- read_html(pageurl)
precio(i)=htmlpage %>%
html_nodes(xpath='//*[@id="aspnetForm"]/div[6]/div[1]/div[1]/div[3]/h2')
}
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? A reprex makes it much easier for others to understand your issue and figure out how to help.
Please have a look at this guide, to see how to create one:
Hola Juan, bienvenido!
Para ayudarnos a ayudarte, podrías preparar un "Ejemplo Reproducible" (REPREX en ingles) ilustrando tu problema? Un ejemplo reproducible hace que sea mucho más fácil para otros entender tu problema y averiguar como ayudar.
Por favor revisa esta guía para ver como crear uno: