Re: [R] purrr::map and xml2:: read_xml

2017-01-06 Thread Ulrik Stervbo
Hi Maicel, I'm guessing that B works on 50 files, and that A fails because there is no function called 'read_xmlmap'. If the function that you map work well, removing 'dplyr::sample_n(50)' from 'B' should solve the problem. If that is not the case, we need a bit more information. HTH Ulrik On

[R] purrr::map and xml2:: read_xml

2017-01-06 Thread maicel
Hi List, I am trying to extract the key words from 1403 papers in xml format. I programmed such codes but they do not work but they only do with the modification showed below. But that variation is not the one I need because the 1403 xml files do not match to those in my folder. Could you