I am trying to develop an R script that takes a string and submits it on wikipedia search box. After reaching the page of that string, the R-program should extract all the tables from the page. For example, if the string is Manchester United, the R-script should submit a query on Wikipedia that takes it to the Manchester united page and extract all the tables and convert them into data frames.
P.S: I have just begun to try out web scraping in R, so any help would be greatly appreciated.