TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why R is the best coding language for data journalism

19 点作者 countrymile5 个月前

3 条评论

Jimmc4145 个月前
<a href="https:&#x2F;&#x2F;archive.is&#x2F;uFJ9s" rel="nofollow">https:&#x2F;&#x2F;archive.is&#x2F;uFJ9s</a>
nickm125 个月前
Maybe things have changed since I last programmed seriously in R nearly 10 years ago, but back then the language had serious design flaws that made it <i>way</i> too easy to write incorrect programs. Conflating scalar and vector types, weak typing, and various other design choices led to hard to fix bugs, even you even realized the answers were incorrect. Proponents of strong static typing might say the same sorts of things about Python, but Python is much better than R in this regard.<p>I would hope that data journalism, like any other kind of journalism, would care about correctness.
评论 #42460982 未加载
评论 #42468410 未加载
评论 #42459338 未加载
aplzr5 个月前
The article lists a few things that you can do with R, but fails to make good on its headline promise: explaining why R is the best language for data journalism.<p>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&#x27;t know it after reading this article, because it doesn&#x27;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.<p>Anecdotally, a number of years ago at university I took a class titled &quot;Statistical programming with R&quot; 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&#x27;t doubt that one can do great things with R, but the effort needed to get there simply doesn&#x27;t seem worth it to me when Python seems so much more accessible.<p>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&#x27;s essentially just a statement of opinion that isn&#x27;t backed up in any meaningful way.