LAB100
Week 21: Constructing Matrices
Your aim for this workshop is to learn how to construct matrices and to extract information from them. Upon completing this workshop you should be able to:
-
•
Use the matrix command
-
•
Combine vectors to construct a matrix
-
•
Subset a matrix to obtain a particular value, vector or sub-matrix
-
•
Construct a matrix using a for loop
Remember that you need to change the working directory and open a new R script at the start of each workshop.