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 :
Eylist list comp comp
The arguments to the list function are the list components. Remember, these components can be matrices, vectors, other lists,
Instructions
Construct a list, named mylist that contains the variables myvector mymatrix and mydf as list components.
script:R
# Vector with numerics from up to
myvector :
# Matrix with numerics from up to
mymatrix matrix ncol
# First elements of the builtin data frame mtcars mydf mtcars
# Construct list with these different elements:
mylist
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
