Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please produce the answers in R, also please don't use other sites to answer this question. 1.2Use the following script, we can generate a 3X4
Please produce the answers in R, also please don't use other sites to answer this question.
1.2Use the following script, we can generate a 3X4 matrix tmp<-matrix(rnorm(12), 3, 4).
- Answer the following questions.
- (1) Compute the sum of the first and third column. (The sum of the 1st column and then the sum of the 3rd column both independently)
- (2) Compute the product of the first and third row.
- (3) Show the dimension of the matrix.
- (4) Use 'cat' function to output elements in the first row that are larger than 0.5.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started