Categories: Big Data

Data Science – Why Learn R?

This article represents thoughts on why it is OK to learn yet another programming language named as R for doing data analysis. Please feel free to comment/suggest if I missed to mention one or more important points. Also, sorry for the typos.
Following are the some of the key points described later in this article:
  • Why can’t I use Java/C etc for data analysis?
  • Key Aspects of Data Analysis vis-a-vis R Language
  • Why R fundamentally?
  • Advantages & Disadvantages of R

 

Why can’t I use Java/C etc for data analysis?

I have worked a lot with Java/C/PHP/C++ etc in my career. From whatever I have known about R by now, I could confidently say that I am thankful that we have R language. This is because last thing I would want to do with data analysis is to first write programs and then do data analysis using these programs. What a mess it will be! What a motivation killer it will be! This is because I need to achieve minimum of following very quickly when I am analyzing data:

  • Cleanup the data
  • Transform the data in different formats as part of analysis and access the same
  • Create visualization charts for different transformations
  • Model the data.

To do all of the above, as I imagine, I see myself running away from writing programs and changing it for small modifications in order to do efficient and effective data analysis. Ideally, if I could get a console where I could use one or more commands to achieve above objectives, it would be so easy  and fast. This is where R comes very handy. With few commands, you could access the data, do data clean-up, visualize and model the data very easily.

Key Aspects of Data Analysis vis-a-vis R Language

Following are some of the key aspects/phases of data analysis which need to performed in order to find out actionable knowledge or insight from data.

  • Data access
  • Data cleaning/wrangling
  • Data transformation
  • Data visualizations
  • Data modeling

Most of the above aspects include the application of mathematics and statistical knowledge along with machine learning algorithms. And, what is needed is a programming language or a platform which achieves the above objectives along with fulfilling the need of becoming a platform suited for statistics. R fits in very well.

 

Why R Fundamentally?

I was seeing a Stanford seminar on Data analysis with R where following was represented as key aspect of solving a data analysis problem and how R fits in:

  • Thinking about the problem
  • Coding the solution
  • Computer running the solution

When doing the data analysis, lot of time is spent on thinking about the problem. So, with data analysis, what is needed is a programming language or a platform which helps in thinking about or expressing the problem and quickly come up with solution. This is where R fits in very well. Once the solution is identified, one can than use programming languages such as C or Java or Python to code and achieve some of the requirements related with performance & scalability.

 

Advantages & Disadvantages of R

Following are some of the disadvantages of R language:

  • It has a steeper learning curve. After spending some time with R, I could say that if you are not one of those with virtue of patience, be sure to see you run away or get frustated after doing it for a short while.
  • Some say that it is slower than programming language such as C or for that matter, Java etc. But who cares as what is needed is a language that aid in data analysis and that is it, and R does it very well.
  • Other aspect is that entire data has to fit in memory for you to work with data. If you are working on your laptop, you could only work with limited data. However, as we talk about Big Data, it is expected that you have system with higher configuration for RAM etc.

Following are some of the advantages of R:

  • It is open-source and free.
  • It has large community support
  • It runs on multiple platforms such as Unix, Win
  • If you need some functionality which is not present as a package, you could build it yourself.
  • Supports visualizations

 

Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking.

Recent Posts

Agentic Reasoning Design Patterns in AI: Examples

In recent years, artificial intelligence (AI) has evolved to include more sophisticated and capable agents,…

2 months ago

LLMs for Adaptive Learning & Personalized Education

Adaptive learning helps in tailoring learning experiences to fit the unique needs of each student.…

3 months ago

Sparse Mixture of Experts (MoE) Models: Examples

With the increasing demand for more powerful machine learning (ML) systems that can handle diverse…

3 months ago

Anxiety Disorder Detection & Machine Learning Techniques

Anxiety is a common mental health condition that affects millions of people around the world.…

3 months ago

Confounder Features & Machine Learning Models: Examples

In machine learning, confounder features or variables can significantly affect the accuracy and validity of…

3 months ago

Credit Card Fraud Detection & Machine Learning

Last updated: 26 Sept, 2024 Credit card fraud detection is a major concern for credit…

3 months ago