Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Hello, R! | Basic Syntax and Operations
R Introduction: Part I

Hello, R!Hello, R!

Welcome to the introductory R course! Throughout this course, you’ll become proficient with R’s fundamental syntax, operations, and data types.

In contrast to many other programming languages, R doesn't require a specific function to display output. Let's embark on our R journey with some simple arithmetic to get things started.

In R, you can carry out basic arithmetic using the usual operators: + for addition, - for subtraction, * for multiplication, and / for division. For instance, we can compute a few mathematical expressions.

Please note, each new operation should begin on a new line.

Tarea

Perform the following calculations using basic arithmetic operations:

  1. 30 + 24
  2. 50 - 36
  3. 19 * 7

After completing these tasks, press the button below the code to check your answers.

¿Todo estuvo claro?

Sección 1. Capítulo 1
toggle bottom row
course content

Contenido del Curso

R Introduction: Part I

Hello, R!Hello, R!

Welcome to the introductory R course! Throughout this course, you’ll become proficient with R’s fundamental syntax, operations, and data types.

In contrast to many other programming languages, R doesn't require a specific function to display output. Let's embark on our R journey with some simple arithmetic to get things started.

In R, you can carry out basic arithmetic using the usual operators: + for addition, - for subtraction, * for multiplication, and / for division. For instance, we can compute a few mathematical expressions.

Please note, each new operation should begin on a new line.

Tarea

Perform the following calculations using basic arithmetic operations:

  1. 30 + 24
  2. 50 - 36
  3. 19 * 7

After completing these tasks, press the button below the code to check your answers.

¿Todo estuvo claro?

Sección 1. Capítulo 1
toggle bottom row
some-alt