« first day (2440 days earlier)      last day (735 days later) » 

1:57 AM
If it's not tidy, it doesn't exist
 
 
5 hours later…
7:14 AM
@JoshuaUlrich That was a user error for not using the development version of purrr, rather than the 20 year old base R code.
 
7:26 AM
the 20 year old base code that is 10 times faster than the new hotness.
Doing it with N map_chr functions is iterating over the whole list N times. Doing it an element at a time, like with lapply and rbind iterates over the list once. A quick benchmark test shows me the map_chr approach is ten times slower. That's the price you pay for being "tidy". — Spacedman 26 secs ago
 
 
8 hours later…
3:17 PM
Ugh
0
Q: in web scraping with R unable to get correct data?

Vicky"library(rvest) library(dplyr) url <- "https://www.forbes.com/powerful-brands/list/" webpage <- read_html(url) Unable to extracting elements with following code forbes_tables_html <- html_nodes(webpage, xpath ="//table/tbody//tr[2]/td[4]") forbes_tables <- html_text(forbes_tab...

user deleted it after i bothered to edit the code
 

« first day (2440 days earlier)      last day (735 days later) »