2297 search results for "git"

Le Monde puzzle [52]

December 31, 2010
By
Le Monde puzzle [52]

The last puzzle of the year in Le Monde reads as follows (as far as I understand its wording!): Iter(n,x,y) is the function Iter=function(n,x,y){ if (n==1){ output=trunc(y/10)+x*(y%%10) }else{ output=Iter(n-1,x,Iter(1,x,y))} return output } Find the seven-digit number z such that Iter(6,1,z)=12, Iter(6,2,z)=19, Iter(6,3,z)=29, and Iter(6,-1,z)=Iter(6,-2,z)=Iter(6,-3,z)=0. Obviously, the brute-force solution of listing all 90 million seven digit

Read more »

nlm [unused argument(s) (iter = 1)]

December 28, 2010
By
nlm [unused argument(s) (iter = 1)]

Ashley put the following comment on Chapter 5 of Introducing Monte Carlo Methods with R”: I am reading chapter 5. I try to reproduced the result on page 128. The R codes don’t work on my laptop. When I try to run the following codes on page 128 > for (i in 1:(nlm(like,sta)$it)){ + mmu=rbind(mmu,nlm(like,sta,iter=i)$est)}

Read more »

Citizen Data Journalism: Mexico Homicides

December 23, 2010
By
Citizen Data Journalism: Mexico Homicides

I've recently praised some mainstream media outlets like the New York Times and New Scientist for leading the charge on data journalism. But you don't need to be a large organization to find news in data. With open data sources, and open-source data analysis tools, individuals can make newsworthy discoveries. Diego Valle-Jones has been investigating the impact of the...

Read more »

Some problems with the Mexican mortality database

December 22, 2010
By
Some problems with the Mexican mortality database

I've written before about how I couldn't find the Acteal Massacre in the homicide database available at the INEGI. So I decided to check if the deaths that occurred as a consequence of the massacre were misclassified as other types of violent death,

and indeed they were. In the municipality of Chenalhó,...

Read more »

Some problems with the Mexican mortality database

December 22, 2010
By
Some problems with the Mexican mortality database

I've written before about how I couldn't find the Acteal Massacre in the homicide database available at the INEGI. So I decided to check if the deaths that occurred as a consequence of the massacre were misclassified as other types of violent death,

and indeed they were. In the municipality of Chenalhó,...

Read more »

A Very Data Christmas

December 21, 2010
By
A Very Data Christmas

This week Google announced its Ngram Viewer, which allows you to explore the use of words in thousands of texts overtime, going back two hundred years. Given the relatively long time period covered by this massive data set, it is fun to explore how language has changed overtime.

Some texts, however, seem to transcend time.

Read more »

Google Insights and RCurl

December 20, 2010
By

Google Insights is nifty. If you’re logged in to your Google account, you can download the results as a CSV file. This is straightforward if you’re using a browser; if you’re trying to retrieve the results of queries using R, however, things get more complicated.

The following code retrieves the results of a Google Insights search for...

Read more »

How to buy a used car with R (part 2)

December 20, 2010
By
How to buy a used car with R (part 2)

Continued from Part 1.

Part 2: Digging into the Kelley Blue Book

The only thing better than a bit of data is a lot of data. Now that we can grab KBB values for a given trim of a given model in a given year, we set our ambitions higher: automating the collection of these values for...

Read more »

Joe West vs. Bruce Froemming: A Crude Umpire LHB/RHB Bias Comparison

December 17, 2010
By
Joe West vs. Bruce Froemming: A Crude Umpire LHB/RHB Bias Comparison

In my last two posts, I have tinkered with the 'gam' package to create heat maps for individual umpire strike zones. I went ahead and grabbed Joe West's data (which has a lot more pitches than Bruce Froemming in it, since Froemming's data is only from...

Read more »

In case you missed it: November Roundup

December 17, 2010
By

In case you missed them, here are some articles from November of particular interest to R users. Dirk Eddelbuettel and Romain Francois went to Google to talk about integrating R (using Rcpp, for example), and we gave a review of the video presentation. R co-creator Ross Ihaka wins a Lifetime Achievement Award in Open Source. Revolution has job openings...

Read more »