Why R is the best coding language for data journalism
economist.com
economist.com
I would hope that data journalism, like any other kind of journalism, would care about correctness.
I don't think it's necessarily wrong and I have seen this approach bring in a tremendous amount of value despite what the Engineering intuition says. I myself came from that world and switched into Python and onboarded into the normal software dev world.
Hot take: if you are programming in R you are probably using the wrong tool. If you are analyzing, munging, modeling, visualizing data or fitting/training models, you are probably using the right tool.
I didn't.
I do wonder what you are programming in R, that isn't loading, munging visualizing and fitting models.
Do you have a github you can share? Or a SICP with examples in R?
And of the top of my head I have no idea how the round trip will end up. Will it spit out a 1 length vector in the json file or a scalar? And which ever you get, how would you do the opposite?
To me, and I think to many other people as well, the language most suited for anything data-related is Python, not R. I might be wrong, but If I am I won't know it after reading this article, because it doesn't compare R to other options on the table. R is only the best at something if it offers advantages over the other options, and to be honest I very much doubt that this is the case when comparing against Python.
Anecdotally, a number of years ago at university I took a class titled "Statistical programming with R" because I had heard good things about it and was looking forward to a chance to learn a new tool. Unfortunately I learned pretty quickly that I had to fight R every step of the way to get it to do what I wanted. Everything seemed arcane, convoluted, and complicated. Went back to Python and never looked back. I don't doubt that one can do great things with R, but the effort needed to get there simply doesn't seem worth it to me when Python seems so much more accessible.
Having said all that, I would be quite interested in a comparison of typical data science (or data journalism) tasks in both R and Python by someone who is good at both. After having read the article headline I had hoped it went into that direction. I was disappointed to see that it's essentially just a statement of opinion that isn't backed up in any meaningful way.