DiscoverDataScience.org

  • Programs
    • Bachelor’s in Data Science Programs
      • Data Science Minors
    • Master’s in Data Science Programs
    • Data Science PhD Programs
    • Data Science Certification Programs
    • Data Science Associate Degrees
    • Data Science Bootcamps
    • MBA in Data Science/Analytics
  • Online
    • Online Master’s in Data Science Programs
    • Online Master’s in Data Analytics Programs
    • Online Master’s in Business Analytics Programs
    • Online Master’s in Information Systems
    • Online Master’s in Health Informatics Programs
  • Resources
    • 2021 Salary Guide to Careers in Data Science
    • Top 30 Affordable Online Master’s in Data Science Programs
    • Journey through Data Science with the Data Professor
    • The Significance of Data Community Building
    • How to Build a Data Science Portfolio & Resume
    • Data Science Job Search Guide
    • Guide to a Career in Analytics
    • Guide to a Career in Health Informatics
    • Guide to Geographic Information System (GIS) Careers
    • Careers with Numbers
    • Income Sharing Agreement Guide
    • GRE Prep Guide
    • Kids STEM Guide
    • Women in STEM Guide
    • Minorities in STEM Guide
    • STEM Scholarship Guide
    • Big Data Internship Tips
    • Data Science in High Schools
    • Applying for a Big Data PhD
    • Data Science and Sustainability
    • Data Science and Libraries
    • Data Science Degrees by State
    • Math Help Guide
  • Related Programs
    • Master’s in Business Analytics Programs
    • Master’s in Data Analytics Programs
    • Master’s in Information Systems Programs
    • Master’s in Health Informatics Programs
    • Ph.D. Programs in Information Systems
    • Ph.D. in Health Informatics Programs
    • Sports Analytics Degree Programs
    • GIS Degree Programs
    • Accounting Analytics Degree Programs
    • Actuarial Science Degree Programs
    • Cyber Security Degree Programs
    • Data Analytics and Visualization Programs
  • About
FIND A PROGRAM
1
2
3
4
Sponsored Content

The Data Scientist’s Toolkit: R Programming Language

By Kat Campise, Data Scientist, Ph.D.

Just about everyone in the programming/computer science industry has heard of Python: it’s the programming language most frequently listed in job descriptions (aside from Java or JavaScript). But, within the data science community, R sits alongside Python as one of the go-to languages for all things data science related. Initially designed as a statistical calculation and graphical tool by Ross Ihaka and Robert Gentleman, who wrote about R in 1996, R now has over 10,000 packages available for a wide swath of computational capabilities including (the list below is meant only as a brief overview; for a more specific list, please see the CRAN Packages site):
  • Both basic and advanced statistics
  • Data cleaning
  • Data mining and scraping
  • Machine Learning
  • Graphics/plots

Featured Programs:
Sponsored School(s)
Georgetown University Logo
Georgetown University
Featured Program: Master of Science in Business Analytics
Request Info
Grand Canyon University Logo
Grand Canyon University
Featured Program: BS and MS in Business Analytics; MS in Data Science; DBA: Data Analytics (Qualitative Research)
Request Info
Capella University Logo
Capella University
Featured Program: BS in Data Analytics; Master of Science in Analytics; PhD in Information Technology
Request Info
University of Denver Logo
University of Denver
Featured Program: Master of Science in Data Science
Request Info
Syracuse University Logo
Syracuse University
Featured Program: Master of Science in Applied Data Science
Request Info
UC Berkeley Logo
UC Berkeley
Featured Program: Master of Information and Data Science
Request Info
Utica University Logo
Utica University
Featured Program: MS in Data Science
Request Info
Babson College Logo
Babson College
Featured Program: STEM-designated MS in Business Analytics; MBA with Business Analytics and Machine Learning
Request Info
Saint Mary's University of Minnesota Logo
Saint Mary's University of Minnesota
Featured Program: Online M.S. in Business Intelligence & Data Analytics
Request Info
Georgetown University Logo
Georgetown University
Featured Program: Master of Science in Business Analytics
Request Info
George Mason University Logo
George Mason University
Featured Program: Data Analytics Engineering Certificate; Master of Science in Data Analytics Engineering
Request Info
Johns Hopkins University Logo
Johns Hopkins University
Featured Program: Master of Science in Data Analytics and Policy; Graduate Certificate in Data Analytics and Policy
Request Info
University of Bath Logo
University of Bath
Featured Program: Business Analytics online MSc; Artificial Intelligence online MSc
Request Info
Nottingham Trent University Logo
Nottingham Trent University
Featured Program: Online MBA with Data Analytics
Request Info
Remote: 18.232.52.135
X Forward:
CF Connect:
CF True:
Location: Ashburn, VA in US
Given the ever-increasing R community, and the growing demand for R expertise throughout all industries, the TIOBE programming community index currently ranks R as the 11th most popular programming language; and its popularity continues to climb. But, with all of the other available languages, why use R?

Why Use R?

Let’s get this fact out of the way: choosing a programming language is equal parts personal preference and what an employer requires. If you are an expert in R, but Corporation X uses Python, unless you can convince them otherwise or they are flexible about programming languages for data science, then you’ll need to make the switch. In fact, knowing how to perform the same (or similar) functions in both languages is ideal. But, if you’re just getting started in all things data science, and you are new to programming, then R is a great gateway for learning how to merge the worlds of statistics and programming:
  • R has a robust community that is constantly developing new packages and maintains several user groups where newbies, intermediates, and experts can exchange ideas and support new R users. Rather than slogging through R “How to” blogs, Stack Exchange, and Stack Overflow — which are quickly out of date due to consistent package updates and the release of brand new packages — R users can direct their questions precisely towards the R community. There is, however, one exception: R-bloggers is an excellent resource for all levels of R users. Keep in mind that R’s popularity is still growing while also being used primarily within the academic, healthcare, and government sectors (though many Google jobs call for R expertise). So, the more well-known resources for all things programming related aren’t as reliable for helping you to increase your understanding of how R can be used within data science.
  • In terms of statistical packages, R is completely free; it costs you nothing to download and get started. This is in contrast to software such as SPSS, SAS, and STATA, which can cost you hundreds if not thousands of dollars for a license. While some employers still use the aforementioned statistical programs, and becoming familiar with them is recommended, most data science courses — whether via massive online open courses (MOOCs) or the increasing number of degree programs — will use either R or Python for statistical analysis.
You don’t have to perform all analyses within the R environment by using the R programming language: you can run Python packages from R, and write R functions using C++. Additionally, due to its quickly increasing adoption rate, R is now compatible with AWS. As such, R is flexible as both a programming language and a statistical package.

Where to Learn R

In this age of open source and self-directed learning, there are a dizzying array of resources for learning R. It really comes down to which learning method most suits you.
  • Coursera, one of the largest MOOCs, has a number of R programming and R-focused data science courses available. Most courses you can audit for free, which means you may or may not have access to the quizzes and peer review process that lead to earning a certificate. If you’re strapped for cash and prefer to have a verified certificate to beef up your resume, you can apply for “Financial Aid” and take the entire course for free.
  • EdX, another MOOC, also offers self-study courses in Programming R for Data Science, Statistics and R, Introduction to R for Data Science, among many others. EdX also offers course auditing, where you’ll have access to the video lectures and quizzes but won’t earn a certificate unless you pay for the course.
  • DataCamp has a free Introduction to R learning module that takes you step by step through basic R functions. You have the ability to either practice online or via the DataCamp app (so you can learn on the go). As with Coursera and EdX, they limit the number of modules that you can access without cost.
  • In addition to Nanodegree programs such as Data Scientist Foundation, Udacity offers a free a Data Analysis with R course that focuses on exploratory data analysis (EDA).
  • Pluralsight is yet another resource for kick starting your R journey via their Try R module, where they will take you through expressions, logical values, data frames, and how to apply what you’ve learned to real-world data.
To get started with R, all you need to do is visit the R Project website, and download the latest version of R. For those who prefer an integrated development environment (IDE), RStudio offers an all in one code editor, debugger, and visualization package. If you prefer using a Jupyter Notebook, R is now available as a supported programming language and can either be downloaded from Jupyter’s website or via Anaconda. Since R is so flexible, both as a statistical package and a programming language, its usage continues to climb up the ladder as a reliable tool for a wide variety of statistical computations. For those who have either no programming or limited programming experience, familiarizing yourself with one programming language first will lay the groundwork for transferring that knowledge to other languages. Knowing multiple programming languages is ideal. But, for aspiring data scientists (who hopefully have some advanced statistical coursework or practical experience in statistics beyond simple descriptive statistics), R is the perfect introduction to applying analyses using a freely available and widely supported programming language.
FIND A PROGRAM
1
2
3
4
Sponsored Content
  • Career Guides
  • Data Analyst
  • Data Architect
  • Data Engineer
  • Business Analyst
  • Marketing Analyst
  • Data Analytics Manager
  • Business Intelligence Analyst
  • Data Mining Specialist
  • Statistician
  • Machine Learning Engineer
  • Database Administrator
  • Database Developer
  • Data Science Toolkit
  • Hadoop
  • Hive
  • Java
  • Python
  • R
  • SAS
  • SQL
  • Tableau
  • Data Science Articles
  • Journey through Data Science with the Data Professor
  • How to Build a Data Science Portfolio & Resume
  • The Significance of Data Community Building
  • Developer Impostor Syndrome
  • How to Improve Programming Skills
  • Data Science Degree Vs. Training
  • Why Data Destruction is Important for your Business
  • Data Storytelling: Mastering Data Science’s Core Skillset
  • What is a Marketing Funnel and How to Create One
  • Building a Data Science Brand
  • Interviewing for Data Careers
  • Top 5 Reasons to Become a Data Scientist
  • What is Data Analytics?
  • What is Business Analytics?
  • What is Quantum Machine Learning?
  • What is Predictive Analytics?
  • Data Science vs. Statistics
  • Data Mining vs. Machine Learning
  • Business Analyst vs. Data Scientist
  • Data Scientist vs. Software Engineer
  • Data Science vs. Computer Science
  • Data Engineer vs. Data Scientist
  • Data Analyst vs. Data Scientist
  • How to Use Deepfake Technology
  • Java vs. JavaScript
  • What Is Python Used For & Why Is It Important to Learn?
  • Artificial Intelligence as a Trending Field
  • Data Science in Health Care
  • Guide to a Career in Criminal Intelligence
  • Guide to a Career in Health Informatics
  • Guide to Geographic Information System (GIS) Careers
  • Data Science Ph.D.
  • Expert Interview: Dr. Sudipta Dasmohapatra
  • Expert Interview: Sandra Altman
  • Expert Interview: Tony Johnson
  • Expert Interview: Bob Muenchen
  • Industries Using Data Science
  • Artificial Intelligence
  • Biotechnology
  • Finance
  • Health Care
  • Insurance
  • Law Enforcement
  • Logistics
  • Marketing and Advertising
  • Sports
  • Clean Energy
  • Programs
  • Online
  • Resources
  • Related Programs
Our site does not feature every educational option available on the market. We encourage you to perform your own independent research before making any education decisions. Many listings are from partners who compensate us, which may influence which programs we write about. Learn more about us

© Copyright 2022 | https://www.discoverdatascience.org | All Rights Reserved

  • Home
  • About Us
  • Privacy Policy
  • Terms of Use