Thursday, February 15, 2024

LIS 4370 R Programming - Module 6 Assignment

 In this week in LIS 4370, we are asked to answer the following questions using R.

Question 1:

Consider A <- matrix(c(2, 0, 1, 3), ncol = 2) and B <- matrix(c(5, 2, 4, -1), ncol = 2)

a) Find A + B

b) Find A - B

Output:

Question 2:

Use the diag() function to to build a matrix of size 4 with the following values in the diagonal: 4, 1, 2, 3

Output:

Question 3:

Generate the following matrix:

Hint: Use the diag() command to build it.

Solution and Output:

Here's the link to the full code on GitHub: Module 6 Code

~ Katie

No comments:

Post a Comment

LIS 4370 R Programming - sentimentTextAnalyzer2 Final Project

For this class's major final project, I set out to make the process of analyzing textual files and URL links for sentiment insights much...