Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Assignment Operators | Section
Essential R Programming for Absolute Beginners - 1768563985826

bookAssignment Operators

R provides several operators for assigning values to variables.

year = 2020
year <- 2020
2020 -> year

However, -> is rarely used because it reduces code readability.

Note
Note

Going forward, assignments will be shown using the left arrow (<-) and the equal sign (=).

Aufgabe

Swipe to start coding

  1. Use the equal sign (=) to assign the result of 29 %/% 8 to the variable named equal.
  2. Use the left arrow (<-) to assign the result of 29 %% 8 to the variable named left.
  3. Use the right arrow (->) to assign the result of equal ^ left to the variable named right.
  4. Print the values of equal, left, and right in sequence using the cat() function.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 10
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

close

bookAssignment Operators

Swipe um das Menü anzuzeigen

R provides several operators for assigning values to variables.

year = 2020
year <- 2020
2020 -> year

However, -> is rarely used because it reduces code readability.

Note
Note

Going forward, assignments will be shown using the left arrow (<-) and the equal sign (=).

Aufgabe

Swipe to start coding

  1. Use the equal sign (=) to assign the result of 29 %/% 8 to the variable named equal.
  2. Use the left arrow (<-) to assign the result of 29 %% 8 to the variable named left.
  3. Use the right arrow (->) to assign the result of equal ^ left to the variable named right.
  4. Print the values of equal, left, and right in sequence using the cat() function.

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 10
single

single

some-alt