← Back to R Course | Chapter 1: Getting Started | Lesson 1 of 6

What is R?

R is a language made for working with numbers and data, like a super calculator that can also draw charts. Scientists and analysts use it to find patterns in information.

In this page:

  1. What is R?

What is R?

R is a programming language and free software environment built specifically for statistical computing and graphics. It was created by Ross Ihaka and Robert Gentleman at the University of Auckland in 1993, drawing heavily on the S language developed earlier at Bell Labs.

R is the tool of choice across data science, statistics, academic research, and bioinformatics, thanks to its enormous ecosystem of statistical packages and built-in plotting capabilities.

Note: R consistently ranks among the top languages for data analysis and statistics -- if your work involves interpreting data rather than just building software, R is often the fastest path to an answer.

Example: What is R?

markup
print("Hello, World!")
Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
Common Mistakes
  1. Thinking R is only for statistics and cannot do general programming, when it is a full language used for data cleaning, plotting and scripting.
  2. Expecting R to work like Python with the same syntax, such as using = everywhere and 0-based indexing, when R conventionally uses <- and starts at 1.
  3. Installing only RStudio and expecting it to run code, when RStudio is an editor that needs R installed separately.
🔒

Chapter Quiz — Complete all 6 topics to unlock

0/6 topics done

Complete these topics first:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.