Getting Started With R: Basics Every Data Scientist Learns First

Want to explore data like a pro? R is one of the most powerful tools for data science, and getting started is easier than you might think. From setup to your first plot, here’s how to build a strong foundation.

In partnership with

New at hackr.io

This week we’re breaking down R for beginners. You’ll see how to install it, write your first script, and create simple data visualizations.

Partner Message

Cut Costs. Not Corners.

Economic pressure is rising,  and doing more with less has become the new reality. But surviving a downturn isn’t about stretching yourself thinner; it’s about protecting what matters most. 

BELAY matches leaders with fractional, cost-effective support — exceptional Executive Assistants, Accounting Professionals, and Marketing Assistants — tailored to your unique needs. When you're buried in low-level tasks, you lose the focus, energy, and strategy it takes to lead through challenging times. 

BELAY helps you stay ready for whatever comes next.

The Scoop

Top 3 R Basics to Learn First

Install R and RStudio
Download R from CRAN, then install RStudio as your IDE. This setup is standard for nearly every R user.

Your First Script
Start small with x <- c(1, 2, 3, 4, 5) and calculate the mean. It shows you how R handles variables, functions, and vectors.

Simple Plots
With plot(x), you can visualize data immediately. Adding labels and colors helps you learn the basics of R’s graphics system.

Partner Message

Smarter Marketing Starts Here

Most marketers waste money on channels that don’t actually drive results. The secret? Incrementality.

Our free ebook, Unlocking Incrementality: A Guide for Marketing Success, shows you how to measure what really moves the needle—so you can stop guessing and start scaling.

Inside, you’ll discover:

  • The difference between attribution and true incrementality

  • Proven testing methods to measure real impact

  • How to double down on the channels that actually work

  • Case studies from top brands already seeing outsized ROI

Don’t just run campaigns. Run campaigns that count.

Full Python Course

And test your skills in real time with the free online Python editor.

Get full access to Python with Dr. Johns when you sign up for Hackr Premium.

“Robert is a great teacher! The material is concise and easy to follow along with.”

Dovi
Skills

What Else Should You Know?

Once you’re comfortable with the basics, expand into:

  • Data Wrangling with dplyr and tidyr

  • Data Visualization with ggplot2

  • Statistical Modeling and Regression

  • Working with Data Frames and CSV Files

  • Reproducible Analysis with R Markdown

The more you explore, the more R will help you handle large datasets, run advanced analyses, and share insights clearly.

That’s it for today.

Thanks for being part of the community at Hackr.io. Keep learning. Keep experimenting. And keep developing new skills.

The Hackr.io Team

P.S.

New here? Browse Python projects to build real-world skills you can bring to any industry.