# R (Programming Language)

> A free language for stats and for drawing charts from data.

**Field:** Software Development  
**Category:** Languages  
**Also known as:** R Language, R Programming

## Think of it like

It is like a smart sum box that can also draw charts.

## Definition

R is a free language made for statistics and charts. It works with whole lists and tables of numbers at once. It has built-in tools for averages, tests and models. Thousands of extra packages add more, shared on a site called CRAN. It is widely used in research, health and data teams.

## Example

Jack loads a table of test scores into R. Two lines give the average and draw a chart.

## Example code

```r
> scores <- c(70, 85, 90)
> mean(scores)
[1] 81.66667
```

Make a list of three scores, then ask for the average.

## Why it matters

Many new statistics methods appear in R first. Researchers share their work as R code.

## Common mistake

Treating it like a general app language. It is great for analysis and weak for building websites or games.

## Three principles

- **Made for stats.** Tests and models built in.
- **Whole tables.** Works on many numbers at once.
- **Packages.** Extra tools shared on CRAN.

## Related terms

- [Python](https://learn.benibix.com/term/development/python)
- [MATLAB Language](https://learn.benibix.com/term/development/matlab)
- [Julia (Programming Language)](https://learn.benibix.com/term/development/julia)
- [Data Analysis](https://learn.benibix.com/term/data/data-analysis)
- [Mean (Average)](https://learn.benibix.com/term/general/mean)

## Taught in

- [R, Julia and MATLAB](https://learn.benibix.com/learn/development-languages/r-julia-and-matlab): Programming Languages, 10/12

![Four labelled shelves of languages. Data science: R, MATLAB and Julia, beside a small bar chart. Functional: Haskell, Scala, Elixir, beside an arrow that turns a list into a new list. Shell and scripting: shell script, PowerShell, Perl and Lua, beside a terminal prompt. Close to the hardware: assembly language and Objective-C, beside a chip and a phone.](https://learn.benibix.com/diagrams/dev4-language-families.svg)

---

Source: https://learn.benibix.com/term/development/r-language
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
