In: Statistics and Probability
1. Create the following items in R. Show the R output provided by each object.
b The matrix 1 2 3 4 5 6 7 8 9 10 11 12 stored as object mat1.
c The matrix 1 5 9 2 6 10 3 7 11 4 8 12 stored as object mat2.
d A data frame datfr such that the vector 1 2 3 4 5 6 is in the first column, green green red blue yellow red is in the second column, and 4 7 2 8 2 10 is in the third column.
e A list objs consisting of the objects in parts a, b, c, and d, in that order.
b)
-----------------------------------------------------------------------------------------------------------------------------------------
c)
---------------------------------------------------------------------------------------------------------------------------------------------
d)
-----------------------------------------------------------------------------------------------------------------------------------------------
e)
As part a is not provided I am only enlisting b,c and d
-------------------------------------------------------------------------------------------------------------------------------------------