Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Assignment Operators | Section
Practice
Projects
Quizzes & Challenges
Cuestionarios
Challenges
/
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 (=).

Tarea

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.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 10
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookAssignment Operators

Desliza para mostrar el menú

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

Tarea

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 10
single

single

some-alt