Home page for accesible maths

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

LAB100

 
 
\posttitle

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.