Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
What is a List? | Lists
R Introduction: Part II
course content

Contenido del Curso

R Introduction: Part II

What is a List?

You met with lists in the previous section. In simple wording, a list is a data type similar to a vector allowing for storing values of different types.

To create list in R, use the list() function, passing all the values you want to store as the parameters. For example, we can store a single text string, number, and logical value in one 'container'.

As you can see, the list output is much larger than the vector one.

Tarea

Create a list named info with the information on the current chapter and course: 'R Introduction', 6 (section), 1 (chapter in the section), 41 (chapter overall). Output the value of this list, then.

Tarea

Create a list named info with the information on the current chapter and course: 'R Introduction', 6 (section), 1 (chapter in the section), 41 (chapter overall). Output the value of this list, then.

¿Todo estuvo claro?

Sección 3. Capítulo 1
toggle bottom row

What is a List?

You met with lists in the previous section. In simple wording, a list is a data type similar to a vector allowing for storing values of different types.

To create list in R, use the list() function, passing all the values you want to store as the parameters. For example, we can store a single text string, number, and logical value in one 'container'.

As you can see, the list output is much larger than the vector one.

Tarea

Create a list named info with the information on the current chapter and course: 'R Introduction', 6 (section), 1 (chapter in the section), 41 (chapter overall). Output the value of this list, then.

Tarea

Create a list named info with the information on the current chapter and course: 'R Introduction', 6 (section), 1 (chapter in the section), 41 (chapter overall). Output the value of this list, then.

¿Todo estuvo claro?

You met with lists in the previous section. In simple wording, a list is a data type similar to a vector allowing for storing values of different types.

To create list in R, use the list() function, passing all the values you want to store as the parameters. For example, we can store a single text string, number, and logical value in one 'container'.

As you can see, the list output is much larger than the vector one.

Tarea

Create a list named info with the information on the current chapter and course: 'R Introduction', 6 (section), 1 (chapter in the section), 41 (chapter overall). Output the value of this list, then.

Sección 3. Capítulo 1
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
toggle bottom row

What is a List?

You met with lists in the previous section. In simple wording, a list is a data type similar to a vector allowing for storing values of different types.

To create list in R, use the list() function, passing all the values you want to store as the parameters. For example, we can store a single text string, number, and logical value in one 'container'.

As you can see, the list output is much larger than the vector one.

Tarea

Create a list named info with the information on the current chapter and course: 'R Introduction', 6 (section), 1 (chapter in the section), 41 (chapter overall). Output the value of this list, then.

Sección 3. Capítulo 1
Cambia 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