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

Contenido del Curso

R Introduction: Part I

R Introduction: Part I

1. Basic Syntax and Operations
2. Basic Data Types and Vectors
3. Factors

bookComments in R

When you've written an extensive script for research and need to revisit it later for updates or improvements, remembering the purpose of each line of code can be challenging. That’s where annotations within the code, known as comments, become invaluable.

For instance, we can add comments in two ways: as a standalone line and alongside a computation:

12
# Some calculation 11 + 3 # eleven plus three
copy

The console will only show the result of 11 + 3 and ignore all the comments.

Comments are useful not just for clarification, but also for debugging purposes, allowing you to deactivate certain lines of code without deleting them.

Tarea
test

Swipe to show code editor

To make the code executable by deactivating certain lines, apply the hash # symbol to correct the errors.

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 4
toggle bottom row

bookComments in R

When you've written an extensive script for research and need to revisit it later for updates or improvements, remembering the purpose of each line of code can be challenging. That’s where annotations within the code, known as comments, become invaluable.

For instance, we can add comments in two ways: as a standalone line and alongside a computation:

12
# Some calculation 11 + 3 # eleven plus three
copy

The console will only show the result of 11 + 3 and ignore all the comments.

Comments are useful not just for clarification, but also for debugging purposes, allowing you to deactivate certain lines of code without deleting them.

Tarea
test

Swipe to show code editor

To make the code executable by deactivating certain lines, apply the hash # symbol to correct the errors.

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 4
toggle bottom row

bookComments in R

When you've written an extensive script for research and need to revisit it later for updates or improvements, remembering the purpose of each line of code can be challenging. That’s where annotations within the code, known as comments, become invaluable.

For instance, we can add comments in two ways: as a standalone line and alongside a computation:

12
# Some calculation 11 + 3 # eleven plus three
copy

The console will only show the result of 11 + 3 and ignore all the comments.

Comments are useful not just for clarification, but also for debugging purposes, allowing you to deactivate certain lines of code without deleting them.

Tarea
test

Swipe to show code editor

To make the code executable by deactivating certain lines, apply the hash # symbol to correct the errors.

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!

When you've written an extensive script for research and need to revisit it later for updates or improvements, remembering the purpose of each line of code can be challenging. That’s where annotations within the code, known as comments, become invaluable.

For instance, we can add comments in two ways: as a standalone line and alongside a computation:

12
# Some calculation 11 + 3 # eleven plus three
copy

The console will only show the result of 11 + 3 and ignore all the comments.

Comments are useful not just for clarification, but also for debugging purposes, allowing you to deactivate certain lines of code without deleting them.

Tarea
test

Swipe to show code editor

To make the code executable by deactivating certain lines, apply the hash # symbol to correct the errors.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 1. Capítulo 4
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt