In RStudio matrices can be thought of as a structured collection of information. In the first workshop you were introduced to vectors as a collection of data that enabled you to perform the same calculation on each value. Likewise, we can treat matrices in a similar manner. Using the matrices defined in the introduction, type and execute the following commands that perform element-wise commands:
-
-
-
-
-
-
-
-
-
-