Guest User

Untitled

a guest
Jan 16th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ISHN <- read_html("http://....")
  2.  
  3. map_df(1:63, function(i) {
  4.  
  5. pg <- read_html(sprintf(ISHN, i))
  6.  
  7. data.frame(ISHN_title=html_text(html_nodes(pg, ".title a")),
  8. ISHN_country_year=html_text(html_nodes(pg, ".study-country")),
  9. ISHN_author=html_text(html_nodes(pg, ".sub-title div")),
  10. stringsAsFactors=FALSE)
  11.  
  12. }) -> ISHN_df
  13.  
  14. Error in sprintf(ISHN, i) : 'fmt' is not a character vector
Add Comment
Please, Sign In to add comment