Getting started

The most basic operations in R.

R is a programming language that is largely used by statisticians and data analysts with divers backgrounds (biostatistics, finance, marketing...). Applications of R are numerous, but the programming language is largely designed to make heavy statistical analyses, matrix handling and computations very easy to code. It is an open software and libraries can be contributed by anyone and accessible to all via the CRAN platform (The Comprehensive R Archive Network, https://cran.r-project.org/). The open and free to use nature of this programming language makes it very appreciated and sets it as the main competitor to the commercial software and programming language Matlab.

The R programming language is mainly used interactively in the console or ran as script files. It is also possible to use R libraries to create webapplications, interactive data visualization, documentation html files, slides and many other forms of content.

Basic operations in R

Assigning a value to a variable:

x <- 1

y <- "some random useless text"

Create a sequence / assign a range to a variable:

z <- 1:10

print(x) shows the value of x in the console.

Here it shows "[1] 1"

print(z) shows "[1] 1 2 3 4 5 6 7 8 9 10

Matthieu Liatard
Remember this!
Remember this
Play!
Take a quizz on this subject
Close

Hello :)
At Question-Player, we want to share more knowledge and help you never forget anything ever. And for free.

To show us your support, you can create an account:

Login / Create an account
Rate this article :
1
2
3
4
5

Up next

Related posts