5128 search results for "git"

Batch Geocoding with R and Google maps

October 12, 2013
By
Batch Geocoding with R and Google maps

I’ve recently wanted to geocode a large number of addresses (think circa 60k) in Ireland as part of a visualisation of the Irish property market. Geocoding can be simply achieved in R using the geocode() function from the ggmap library. The geocode function uses Googles Geocoding API to turn addresses from text to latitude and

Read more »

Custom Legend in R

October 10, 2013
By
Custom Legend in R

This particular custom legend was designed with three purposes: To effectively bin values based on a theoretical minimum and maximum value for that variable (e.g. -1 and 1 or 0 and 100) To use a different interval notation than the default To handle NA values Even though this particular legend was designed with those needs, it should be simple to extrapolate from...

Read more »

Calculating AUC the hard way

October 10, 2013
By
Calculating AUC the hard way

The Area Under the Receiver Operator Curve is a commonly used metric of model performance in machine learning and many other binary classification/prediction problems. The idea is to generate a threshold independent measure of how well a model is able to distinguish between two possible outcomes. Threshold independent here just means that for any model

Read more »

RegEx: Named Capture in R (Round 2)

October 9, 2013
By

Previously, I came up with a solution to R's less than ideal handling of named capture in regular expressions with my re.capture() function. A little more than a year later, the problem is rearing its ugly - albeit subtly different - head again. I now...

Read more »

More Polarized

October 9, 2013
By
More Polarized

I have immersed myself in polar coordinates.  Here is another little reconstruction that I did.

Read more »

rCharts goes Polar

October 8, 2013
By
rCharts goes Polar

The new micropolar library from Chris Viau, author of   gives us reusable charts with polar coordinates for d3.js.  In testament to rCharts design, Ramnath Vaidyanathan integrated micropolar with rCharts in less than 30 minutes.  I don’t use polar coordinates much, so I wrote this quick little comparison of Cartesian and...

Read more »

Too crude to be true?

October 8, 2013
By
Too crude to be true?

The key to programming is being lazy; it has actually been called a virtue by some. When I discovered the update() function it blew me away. Within short I had created a monster based upon this tiny function, allowing quick and easy output of regression tables that contain crude and adjusted estimates. In this post I’ll show...

Read more »

Guide to using rOpenSci packages during the US Gov’t shutdown

October 8, 2013
By

Note: This is cross-posted from the rOpenSci blog, which will update with this post when our technical snafu is fixed. With the US government shut down, many of the federal government provided data APIs are down. We write R packages to interact with m...

Read more »

American Indians vs Indian Americans, statewide population using googleVis

October 7, 2013
By

The population of Native Americans in the United States is estimated to be anywhere upto 20 million (http://en.wikipedia.org/wiki/Native_Americans_in_the_United_States). I wanted to find out what the population of Native Americans (originally referred to as American Indians by immigrants) is and compare it to the number of Indians from India (Indian Americans). I wanted to do this comparison by county,...

Read more »

Sensitivity analysis for neural networks

October 7, 2013
By
Sensitivity analysis for neural networks

I’ve made quite a few blog posts about neural networks and some of the diagnostic tools that can be used to ‘demystify’ the information contained in these models. Frankly, I’m kind of sick of writing about neural networks but I wanted to share one last tool I’ve implemented in R. I’m a strong believer that

Read more »