<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Oscar Baruffa 📊🇳🇱</title>
    <description>The latest articles on DEV Community by Oscar Baruffa 📊🇳🇱 (@oscar_b123).</description>
    <link>https://dev.to/oscar_b123</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F171852%2F0efa8d5a-b53f-4f5f-98b3-81246771ea0b.jpg</url>
      <title>DEV Community: Oscar Baruffa 📊🇳🇱</title>
      <link>https://dev.to/oscar_b123</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oscar_b123"/>
    <language>en</language>
    <item>
      <title>A roadmap for learning R</title>
      <dc:creator>Oscar Baruffa 📊🇳🇱</dc:creator>
      <pubDate>Wed, 06 May 2020 05:41:52 +0000</pubDate>
      <link>https://dev.to/oscar_b123/a-roadmap-for-learning-r-25f5</link>
      <guid>https://dev.to/oscar_b123/a-roadmap-for-learning-r-25f5</guid>
      <description>&lt;p&gt;Some folks at work expressed an interest in how to get started learning R. There are lots of resources out there, but I thought I'd share with you what I shared with them as a pathway that I followed that's working out well for me.&lt;/p&gt;

&lt;p&gt;You don’t need all these steps but I suggested starting from 1 and working your way through them that way.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read &lt;strong&gt;R for Data Science&lt;/strong&gt; (&lt;a href="https://r4ds.had.co.nz/"&gt;https://r4ds.had.co.nz/&lt;/a&gt;). I only made it to Chapter 16 and could already do a lot of the stuff I wanted to do. This book takes a really nice approach of FIRST getting you some results and then working through some programming-specific stuff, so you won’t just be working through a lot of programming concepts without knowing what you are working towards. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;There are exercises&lt;/strong&gt; (which I largely skipped), but if you do them and want to check your answers, you can read the companion book here: &lt;a href="https://jrnold.github.io/r4ds-exercise-solutions/"&gt;https://jrnold.github.io/r4ds-exercise-solutions/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you get stuck&lt;/strong&gt;, there is a super helpful Slack channel where you can post questions according to the chapter you are on and people will help you.
Once you get the hang of manipulating data, I encourage you to practice with some datasets from the Tidy Tuesday challenge. This is a weekly challenge where people create visualisations of the same dataset. It is GREAT for learning how others do things because they often share their code and you can learn a lot. You don’t have to wait for a new dataset, go ahead and look for old datasets that interest you!&lt;/li&gt;
&lt;li&gt;You can &lt;strong&gt;view past TidyTuesday submissions&lt;/strong&gt; and their code  here: &lt;a href="https://nsgrantham.shinyapps.io/tidytuesdayrocks/"&gt;https://nsgrantham.shinyapps.io/tidytuesdayrocks/&lt;/a&gt;
1.If you want to participate in posting your own visualisations, you’ll need to &lt;strong&gt;join Twitter&lt;/strong&gt;. Here’s a free guide on how to get started on Twitter for R programmers: &lt;a href="https://www.t4rstats.com/"&gt;https://www.t4rstats.com/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you like podcasts&lt;/strong&gt;, there is also a TidyTuesday podcast with short episodes that cover the previous week’s submissions and helpful tips.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I hope that helps you on your journey. Exciting times ahead :).&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Image credit: Photo by oxana v on Unsplash&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rstats</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Book: Twitter for R Programmers!</title>
      <dc:creator>Oscar Baruffa 📊🇳🇱</dc:creator>
      <pubDate>Wed, 06 May 2020 04:58:29 +0000</pubDate>
      <link>https://dev.to/oscar_b123/book-twitter-for-r-programmers-4mpo</link>
      <guid>https://dev.to/oscar_b123/book-twitter-for-r-programmers-4mpo</guid>
      <description>&lt;p&gt;People using R for analysis or data science might have heard that the R community is really active on Twitter, but feel a bit lost when trying to figure out how to use Twitter. &lt;/p&gt;

&lt;p&gt;Like most social media apps, there's a bit of a learning curve to get going. In an effort to help newcomers get the most out of Twitter and join the great community, I have co-authored a short book to help you get started, and it's free :)!&lt;/p&gt;

&lt;p&gt;You can find it at &lt;a href="http://www.t4rstats.com"&gt;www.t4rstats.com&lt;/a&gt; &lt;/p&gt;

</description>
      <category>rstats</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Choosing R over Python</title>
      <dc:creator>Oscar Baruffa 📊🇳🇱</dc:creator>
      <pubDate>Mon, 22 Jul 2019 14:25:24 +0000</pubDate>
      <link>https://dev.to/oscar_b123/choosing-r-over-python-2fgn</link>
      <guid>https://dev.to/oscar_b123/choosing-r-over-python-2fgn</guid>
      <description>&lt;p&gt;In this post I’ll be setting out my view for why you may want to learn to code in R rather than in Python, or at least try R. At the end of this post I also share some suggestions for getting started with either.&lt;/p&gt;

&lt;h1&gt;
  
  
  Some background on my programming history (feel free to skip):
&lt;/h1&gt;

&lt;p&gt;I’ve done bits of programming for quite a while. Whilst never being a star programmer or been able to do anything sophisticated for a long time, I have at one point or another written some code in QBASIC, Turbo Pascal, MATLAB, C , C++ and PHP.&lt;/p&gt;

&lt;p&gt;I’ve dabbled in a bit of Javascript, HTML and CSS – even going so far as to write my own media-queries in CSS before I knew what responsive frameworks were!&lt;/p&gt;

&lt;p&gt;Although not proficient in any of the above, I could do the necessary stuff for coursework and personal websites.&lt;/p&gt;

&lt;p&gt;I’m a fair hand at Excel and some might say, pretty good at it. Yes it is kind-of a programming language, in the sense that it is more like programming than it is not.&lt;/p&gt;

&lt;p&gt;After all of this, when it came to wanting to do very cool stuff, I discovered the world of Python and really got into it – Python 3 that is 🙂 . Reading many articles, doing online courses, listening to all the &lt;a href="https://talkpython.fm/" rel="noopener noreferrer"&gt;Talk Python To Me&lt;/a&gt; episodes and dabbling around enough to do some data cleaning and a bit of visualisation. I even bought a Raspberri Pi!&lt;/p&gt;

&lt;p&gt;So you can see I am not stumbling into R completely blindly when I make my R-over-Python argument.&lt;/p&gt;

&lt;p&gt;This brings me onto R. After somehow following a few people like &lt;a href="https://twitter.com/kierisi" rel="noopener noreferrer"&gt;Jesse Mostipak&lt;/a&gt; and &lt;a href="https://twitter.com/dataandme" rel="noopener noreferrer"&gt;Mara Averick&lt;/a&gt; on Twitter, they made R look so fun and welcoming (not that Python isn’t), that I decided to give it a try. Wow, mind blown! After having done all the other bits and pieces in other languages, R with its Tidyverse set of packages, really makes a lot of sense to me.&lt;/p&gt;

&lt;h1&gt;
  
  
  Before vs after Tidyverse
&lt;/h1&gt;

&lt;p&gt;When I first started with Python, I had read many comments and articles stating that R had a steeper learning curve than Python, but I think this must be a reference R before days of the Tidyverse. The Tidyverse is the name for a collection of packages which all work together really well, with common syntax across them. I can’t tell exactly when the Tidyverse was released but I would guess that it has come into common use in the last two years or so, say from 2017 onwards. I noticed last year there was some of the “should we teach base R or Tidyverse first” type of discussions online, so it’s pretty recent.&lt;/p&gt;

&lt;p&gt;My experience is that R has a less-steep learning curve than Python.&lt;/p&gt;

&lt;h1&gt;
  
  
  Data Analysis and visualisation
&lt;/h1&gt;

&lt;p&gt;If your main aim in programming is to manipulate and visualise data, then you should give R a try. Especially if you are coming from an Excel-heavy background. Visualisation is much easier in R.  My first participation in the TidyTuesday challenge really blew my mind. In a few lines of code I was able to do what would have been quite a painful experience in Python.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F9gsjg7ki0mtooz3i0gl7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F9gsjg7ki0mtooz3i0gl7.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fapt3wumf7z67ih9tut4j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fapt3wumf7z67ih9tut4j.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Again the reason is the Tidyverse. All the packages for manipulating and analysing data share a common underlying philosophy and syntax which makes it really a pleasure to work with. In contrast, if you want to make a decent visualisation in Python, you’ll need to string a number of packages together (Pandas, Seaborn &amp;amp; Matplotlib) which are just different enough to make it tough to customise.&lt;/p&gt;

&lt;h1&gt;
  
  
  Software engineering vs Data Analysis
&lt;/h1&gt;

&lt;p&gt;I think the core difference comes down to the two different starting points of these languages. Python comes at data science from a software engineering perspective, whereas R comes from a data analysis perspective, so it isn’t surprising which seems to be more comfortable with handling data from an analysis and visualisation perspective.&lt;/p&gt;

&lt;h1&gt;
  
  
  Why choose?
&lt;/h1&gt;

&lt;p&gt;Actually, you don’t have to . There isn’t a Python vs R holy-war, even though some people may be trying to make one happen. You can use one, or the other, or both. Of course the more time you spend on one the more proficient you’ll be at it. My suggestion is that if you are coming from Excel, and want to do analysis and visualisation, try R. You will probably love it.&lt;/p&gt;

&lt;h1&gt;
  
  
  Getting started with R
&lt;/h1&gt;

&lt;p&gt;New to R or haven’t found a resource that “clicks” yet?&lt;/p&gt;

&lt;p&gt;Have a look at the &lt;a href="https://r4ds.had.co.nz/" rel="noopener noreferrer"&gt;R4DS online book&lt;/a&gt;. It’s excellent and free. I didn’t get very far before I was hooked. I didn’t even complete half of it and I can already do some cool stuff.&lt;/p&gt;

&lt;p&gt;After that, take part in the &lt;a href="https://github.com/rfordatascience/tidytuesday/blob/master/README.md" rel="noopener noreferrer"&gt;TidyTuesday&lt;/a&gt; challenge on Twitter. It very fun and very welcoming to newcomers – be sure to let us know if it’s your first post!&lt;/p&gt;

&lt;p&gt;I have started a YouTube channel called “&lt;a href="https://www.youtube.com/channel/UCR8mJqIRE57XyqSC4UJ2fFg" rel="noopener noreferrer"&gt;Other People’s Rstats&lt;/a&gt;” with screencasts covering R packages, tips and TidyTuesday posts. I highly recommend it :D.&lt;/p&gt;

&lt;h1&gt;
  
  
  Getting started with Python
&lt;/h1&gt;

&lt;p&gt;The first step I suggest, especially for non-programmers, is to go through the amazing &lt;a href="https://automatetheboringstuff.com/" rel="noopener noreferrer"&gt;Automate the Boring Stuff with Python&lt;/a&gt; book online version. There’s a discount code in it to get a massive discount on the online Udemy course.  This is a great intro to the power of Python to automate things and makes it really engaging to learn about the language.&lt;/p&gt;

&lt;p&gt;The next step is another great online resource. Follow Kevin Markham’s youtube series &lt;a href="https://www.youtube.com/watch?v=yzIMircGU5I&amp;amp;list=PL5-da3qGB5ICCsgW1MxlZ0Hq8LL5U3u9y" rel="noopener noreferrer"&gt;introduction to the Pandas library&lt;/a&gt;. It makes data wrangling really fun and I wouldn’t dare do any in Python without this library. Kevin is a really great instructor.&lt;/p&gt;

&lt;p&gt;To immerse yourself in Python, I also recommend listening to the &lt;a href="https://talkpython.fm/" rel="noopener noreferrer"&gt;Talk Python To Me&lt;/a&gt; podcast.&lt;/p&gt;

&lt;h1&gt;
  
  
  In conclusion
&lt;/h1&gt;

&lt;p&gt;Don’t worry too much about which language you start with. Your decision is not set in stone.&lt;/p&gt;

&lt;p&gt;Any learning you do will be valuable and there are many transferable skills if you do decide to switch.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I originally published this article on my &lt;a href="https://oscarbaruffa.com/" rel="noopener noreferrer"&gt;blog&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rstats</category>
      <category>rprogramming</category>
      <category>python</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
