1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to R

Exercise

Creating a list

Let us create our first list! To construct a list you use the function list():

my_list <- list(comp1, comp2 ...)

The arguments to the list function are the list components. Remember, these components can be matrices, vectors, other lists, …

Instructions

100 XP

Construct a list, named my_list, that contains the variables my_vector, my_matrix and my_df as list components.