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

Stryg for at vise menuen

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.

Opgave

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 desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 1
Vi beklager, at noget gik galt. Hvad skete der?

Spørg AI

expand
ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

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.

Opgave

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 desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 1
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Vi beklager, at noget gik galt. Hvad skete der?
some-alt