Question: Exercise Creating a list Let us create our first list! To construct a list you use the function list ( ) : Ey _ list

Exercise
Creating a list
Let us create our first list! To construct a list you use the function list() :
Ey_list - list (comp1, comp2...)
The arguments to the list function are the list components. Remember, these components can be matrices, vectors, other lists, .
Instructions
Construct a list, named my_list , that contains the variables my_vector , my_matrix and my_df as list components.
script:R
1 # Vector with numerics from 1 up to 10
2 my_vector -1:10
3
4 # Matrix with numerics from 1 up to 9
5 my_matrix - matrix , ncol =3
6
7
8
# First 10 elements of the built-in data frame mtcars my_df - mtcars ,
# Construct list with these different elements:
my_list -
 Exercise Creating a list Let us create our first list! To

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!