R posts on Stack Overflow | A Top 5 selection by DataCampMarch 17th, 2014 in R Programming
Like every start-up in the IT and data science sector, we often find ourselves spending more time on Stack Overflow than on our own site. For those of you who are not familiar with it, Stack Overflow is like a Q&A forum on steroids. It features questions and answers on a wide range of topics in programming, and it's dedicated to answering any and all of these questions. Thanks to its clever reputation system that is based on points and badges, chances are high that you will find a high-quality answer to your particular problem. Believe us, this will save you a lot of time thanks to these R posts on Stack Overflow!
Since we use Stack Overflow that often for DataCamp, we wanted to share our 'Top Five' list of the most popular R questions:
This question is targeted at programmers who want to understand how their programming efforts can benefit from a more statistical approach. Not only does it provide an overview of statistical techniques, part of the answers also focus on the statistical tools programmers can use in their day-to-day activities.
This is something almost every new R programmer struggles with in the beginning: how and when to use the functions in the apply family. If you are one of these, just check out this Stack Overflow post and it will be a lot clearer to you. Multiple individuals have responded to the question, and most of them provide very clear answers with some even including slide presentations.
Again, a very easy but highly relevant question (certainly for new R users switching from Excel). Based on an example, the questioner wants to know how he can sort his data frame by multiple columns. This is a standard task in R, but if you're not familiar with using functions, the barrier to entry might be high. (Spoiler alert: the order function will take you a long way)
Close, but no cigar. This question on xkcd style graphs reached the second place in our top five list. As a start-up, we personally love xkcd style graphs since they have this arty-farty layer over them. They allow you to provide information in a very clear way, but their unique and fun style just increases the chances that your audience will pick them up. A must read for everyone!
Simply put: great question and great answers! Reproducible examples are fundamental for teaching, research, and even for asking questions on, for example, Stack Overflow. However, the creation of reproducible examples is not that easy, and requires a certain finesse. This post will guide you through the ins and outs of creating such reproducible examples, so make sure to check it out since it will definitely help you to better understand R in the long run.
For the not so serious moments...