Tag Archives: r

R and differential equations

Here’s a new R package for solving differential equations. Sounds like something that might be of interest to only a few ivory tower mathematicians, right? But solving differential equations numerically is the critical core of almost any dynamic simulation model, whether it is simulating water, energy, money, ecology, social systems, or the intertwinings of all of these. So if we are going to understand our systems well enough to solve their problems, we have to have some people around who understand these things on a practical level.

best practices for writing code

Here’s another R post I am saving for my own reference – some best practices for writing code. This is something I actually can say I learned in engineering school – it was a covered in 15 minutes or so in a required intro to computer science course I took around 1994. Perhaps it’s time to brush up. Again, these are skills that are useful these days in many fields beyond just computer science and software development.

relational algebra

R bloggers has a nice post on the theory behind database organization, and some tools that can used to manage and manipulate data through R. Maybe this seems very specialized, but many of our jobs involve dealing with data these days, so this knowledge and tools is potentially relevant to us, and yet I don’t think many of us even in technical fields outside math and computer science learn this stuff in school.

where are the refugees from?

Here’s a pretty awesome data analysis on where (legal) refugees who enter the U.S. come from, and where they go. It’s great both for the information, and for the presentation of the information, which is simple yet highly effective. Click on the link, but here are a few facts to whet your appetite:

  • The country of origin for the most refugees to the U.S. in 2014 was Iraq, at 19.651.
  • Surprisingly (to me at least), next is Burma at 14,577.
  • Rounding out the top five are Somalia (9,011), Bhutan (8,316), and D.R. Congo (4,502).
  • After Cuba (4,063), the next highest country from Central or South America is Columbia at 243.

I might have guessed Iraq, but I don’t think I would have guessed anything else on this list. In a number of cases, there are groups of essentially stateless people living in various places (Bhutan and Burma, for example) that the U.S. has agreed to resettle in fairly large groups. In other cases, there are just a handful of people from a given country granted refugee status in a given year. It is a little hard to make sense of why one group is allowed and the next is not.