Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Basic Arithmetic | Section
R Programming Basics
Abschnitt 1. Kapitel 1
single

single

bookBasic Arithmetic

Swipe um das Menü anzuzeigen

R is a programming language designed for statistical computing and data analysis. You use R to explore, manipulate, and visualize data, making it a popular choice for data analysts, statisticians, and researchers across many fields.

Note
Note

Unlike spreadsheet tools such as Excel, R lets you write arithmetic expressions directly in the console and see immediate results. This approach is similar to using a calculator, but with the added benefit of scripting and automating calculations for repeatable analysis.

In R, arithmetic expressions can be written directly in the console, and the result is displayed without the need for an explicit print function.

Arithmetic Operators

You can use the following operators for basic arithmetic:

  • + for addition;
  • - for subtraction;
  • * for multiplication;
  • / for division.

Example

1234
12 + 21 32 - 16 10 * 11 13 / 5
copy
Note
Note

Each new operation should start on a new line.

Aufgabe

Wischen, um mit dem Codieren zu beginnen

Perform the following calculations using basic arithmetic operations:

  1. 30 + 24;
  2. 50 - 36;
  3. 19 * 7;
  4. 28 / 4.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 1
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt