Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara 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 (=).

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 10
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

bookAssignment Operators

Scorri per mostrare il menu

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 (=).

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 10
single

single

some-alt