Posts Tagged ‘ readLines ’

R-Function GScholarScraper to Webscrape Google Scholar Search Result

November 9, 2011
By
R-Function GScholarScraper to Webscrape Google Scholar Search Result

Based on my previous post on Web Scraping I coded and uploaded the Function "GScholarScraper" HERE for testing!The function will pull all (!) results, processing pages in chunks of 100 results/titles, and return a file with all titles, links, etc. It w...

Read more »

Next Level Web Scraping

November 5, 2011
By
Next Level Web Scraping

The outcome presented above will not be very useful to most of you - still, this could be a good example for what possibly can be done via web scraping in R.Background: TIRIS is the federal geo-statistical service of North-Tyrol, Austria. One of many g...

Read more »

Web Scraping Google Scholar & Show Result as Word Cloud Using R

November 1, 2011
By
Web Scraping Google Scholar & Show Result as Word Cloud Using R

OUTDATED! Please see the update HERE!...When reading Scott Chemberlain's last post about web-scraping I felt it was time to pick up and complete an idea that I was brooding over for some time now:When a scientist aims out for a new project the firs...

Read more »

A Little Webscraping-Exercise…

October 22, 2011
By
A Little Webscraping-Exercise…

In R it's quite easy to pull out anything from a webpage and I'll show a little exercise in doing so.Here I retrieve all blog addresses from R-bloggers by the function readLines() and some subsequent data processing.Read more »

Read more »

Example 8.35: Grab true (not pseudo) random numbers; passing API URLs to functions or macros

April 19, 2011
By
Example 8.35: Grab true (not pseudo) random numbers; passing API URLs to functions or macros

Usually, we're content to use a pseudo-random number generator. But sometimes we may want numbers that are actually random-- an example might be for randomizing treatment status in a randomized controlled trial.The site Random.org provides truly rando...

Read more »

Example 8.27: using regular expressions to read data with variable number of words in a field

February 25, 2011
By
Example 8.27: using regular expressions to read data with variable number of words in a field

A more or less anonymous reader commented on our last post, where we were reading data from a file with a varying number of fields. The format of the file was:1 Las Vegas, NV --- 53.3 --- --- 12 Sacramento, CA --- 42.3 --- --- 2The complication in the...

Read more »