Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Hello, R! | Basic Syntax and Operations
TEST R COURSE

Svep för att visa menyn

book
Hello, R!

Welcome to the introductory R course! During this course, you will learn R's basic syntax, operations, and data types.

Unlike many other programming languages, there is no need to use the dedicated function to output values. For example, we can start our R Journey with the most straightforward and basic arithmetic.

In R, you can perform basic arithmetic operations using standard operators. + for addition, - for subtraction, * for multiplication, and / for division. For example, let's calculate some math expressions.

123
12 + 21 32 - 16 10 * 11
copy

Note that each new operation starts on the new line.

Uppgift

Swipe to start coding

Using basic math operations, perform the next calculations:

  1. 30 + 24.
  2. 50 - 36.
  3. 19 * 7.

Click button below the code to check the solution of this task.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 1
Vi beklagar att något gick fel. Vad hände?

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

book
Hello, R!

Welcome to the introductory R course! During this course, you will learn R's basic syntax, operations, and data types.

Unlike many other programming languages, there is no need to use the dedicated function to output values. For example, we can start our R Journey with the most straightforward and basic arithmetic.

In R, you can perform basic arithmetic operations using standard operators. + for addition, - for subtraction, * for multiplication, and / for division. For example, let's calculate some math expressions.

123
12 + 21 32 - 16 10 * 11
copy

Note that each new operation starts on the new line.

Uppgift

Swipe to start coding

Using basic math operations, perform the next calculations:

  1. 30 + 24.
  2. 50 - 36.
  3. 19 * 7.

Click button below the code to check the solution of this task.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 1
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt