recogeo: A new R package to reconcile changing geographic boundaries (and corresponding variables)

Demographics information is usually reported in relation to precise boundaries: administrative, electoral, statistical, etc. Comparing demographics information reported at different point in time is often problematic because boundaries keep changing. The recogeo package faciliates reconciling boundaries and their data by a spatial analysis of the boundaries of two different periods. In this post, I explain how to install the package, reconcile two spatial objects and check the results.


Friday, 1 February 2019


Twitter: frbailo




  • Object of Type Closure is Not Subsettable
    I started using R in 2004. I started using R religiously on the day of the annular solar eclipse in Madrid (October 3, 2005) after being inspired by David Hunter’s talk at ADASS. It took me exactly 4,889 days to figure out what this vexing error means, even though trial and error helped me move […]
  • Cloudy with a chance of Caffeinated Query Orchestration – New rJava Wrappers for AWS Athena SDK for Java
    There are two fledgling rJava-based R packages that enable working with the AWS SDK for Athena: awsathena | GL| GH awsathenajars | GL| GH They’re both needed to conform with the way CRAN like rJava-based packages submitted that also have large JAR dependencies. The goal is to eventually have wrappers for anything R folks need... […]
  • call for sessions and labs at Bay2sC0mp²⁰
    A call to all potential participants to the incoming BayesComp 2020 conference at the University of Florida in Gainesville, Florida, 7-10 January 2020, to submit proposals [to me] for contributed sessions on everything computational or training labs [to David Rossell] on a specific language or software. The deadline is April 1 and the sessions will […]
  • forcats::fct_match
    This journey started almost exactly a year ago, but it’s finally been sufficiently worked through and merged! Yay, I’ve officially contributed to the tidyverse (minor as it may be). It began with a tweet, recalling a surprise I encountered that...Continue Reading →
  • RVowpalWabbit 0.0.13: Keeping CRAN happy
    Another small RVowpalWabbit package update brings us version 0.0.13. And just like Rblpapi yesterday, we have a new RVowpalWabbit update to cope with staged installs which will be a new feature of R 3.6.0. No other changes were made No new code or fe...

RSS Simply Statistics

  • Open letter to journal editors: dynamite plots must die
    Statisticians have been pointing out the problem with dynamite plots, also known as bar and line graphs, for years. Karl Broman lists them as one of the top ten worst graphs. The problem has even been documneted in the peer reviewed literature. For example, this British Journal of Pharmacology paper titled Show the data, don’t […]
  • Interview with Stephanie Hicks
    Editor’s note: For a while we ran an interview series for statisticians and data scientists, but things have gotten a little hectic around here so we’ve dropped the ball! But we are re-introducing the series, starting with Stephanie Hicks. If you have recommendations of a (junior) person in academics or industry you would like to […]
  • The Tentpoles of Data Science
    What makes for a good data scientist? This is a question I asked a long time ago and am still trying to figure out the answer. Seven years ago, I wrote: I was thinking about the people who I think are really good at data analysis and it occurred to me that they were all […]

RSS Statistical Modeling, Causal Inference, and Social Science

  • Boris Karloff (3) vs. Mel Brooks; Riad Sattouf advances
    In yesterday’s contest, Dalton asks: Lance Armstrong isn’t even a GOAT. Did he cheat to get included on the list at the expense of Eddy Merckx? But then Jrc points out: Lance isn’t in for Cycling GOAT, he’s in for NGO-bracelet GOAT. I’m pretty sure he didn’t juice the bracelets. Although now that I think […]
  • Kevin Lewis has a surefire idea for a project for the high school Science Talent Search
    Here’s his idea: If I were a student, I’d do a study on how Science Talent Search judges are biased. That way, they can’t reject it, otherwise it’s self-confirming. That’s a great idea! Maybe it’s possible to go meta on this one by adding some sort of game-theoretic model or simulation of talent search submission […]
  • Riad Sattouf (1) vs. Lance Armstrong; Bruce Springsteen advances
    Best comment yesterday came from Jan: Now we have opportunity to see in the next round whether Julia is really that much better than Python! But that doesn’t resolve anything! So to pick a winner we’ll have to go with Tom: Python foresaw the replication crisis with their scientific method of proving someone is a […]