Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is r programming i need the green that highlighted answered R 111 - ## Question 4 (13 pts] 112 113 Download the file asmall.txt

this is r programming i need the green that highlighted answered
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
R 111 - ## Question 4 (13 pts] 112 113 Download the file asmall.txt from BS and place it in the same folder as your Rmd file. 114 115 + Read the numbers into a vector named Vs using the "scan" command. Print the vector. [2 pts] 116 117- {r} 118 VS=NA # replace this by a code that scans the asmall.txt file 119 Vs 120 - 121 122 + Arrange Vs into a matrix named mi with 4 rows and 6 columns, where the first 6 numbers in the vector are in the first row, the next 6 numbers in the second row, and so on. Use the matrix command, with the "byrow=T" argument. Print the matrix. [2 pts] 123 R Markdown 119:3 C Chunk 7. asmall (1).txt Files NE n F 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 121 122 + Arrange Vs into a matrix named ml with 4 rows and 6 columns, where the first 6 numbers in the vector are in the first row, the next 6 numbers in the second row, and so on. Use the matrix command, with the "byrowt" argument. Print the matrix. [2 pts] 123 124 125 '{r} 126 m1-NA # replace NA with your code 127 m1 128 129 130 131 132 + Arrange Vs into a matrix named m2 with 6 rows and 4 columns, where the first 6 numbers in the vector Vs are in the first column, the next 6 numbers R Markdown File | | 131 132 + Arrange Vs into a matrix named m2 with rows and 4 columns, where the first 6 numbers in the vector Vs are in the first column, the next 6 numbers in the second column, etc. Print the matrix m2. [2 pts] 133 134 135 - '{r} 136 m2-NA # replace NA with your code 137 m2 138 139 140 141 + Calculate, and print, the matrix product named m3 of the matrices ml and m2, using the matrix multiplication operator "%*%. Use the name m3 for the result. [2 pts] 142 143 - {r} 1 AA MIA le di nataladounin 142 143 - *{r} 144 m3=NA # replace NA with your code 145 m3 146 147 148 149 + Use the "det" command to calculate the determinant of matrix m3. Save the result in a object called m3det, and print mdet. [2 pts] 150 151 **{r} 152 m3det=NA # replace NA with your code 153 m3det 154 155 - 156 157 ce the dim' command to get the dimancinnc of the nraduct matrix Chunk 7 A R Markdown U cavo UU C 119-3 156 157 + Use the "dim" command to get the dimensions of the product matrix, save this in variable m3dim and print m3dim. [1 pt] 158 159 - ***{r} 160 m3dim.NA # replace NA with your code 161 m3dim 162 163 164 165 extract the third column of the product matrix into a vector V2, and print V2 [2 pts] 166 167- '{r} 168 V2=NA # replace NA with your code 169 V2 + R Markdown

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

7. Where Do We Begin?

Answered: 1 week ago

Question

1.what is the significance of Taxonomy ?

Answered: 1 week ago

Question

What are the advantages and disadvantages of leasing ?

Answered: 1 week ago

Question

Name is needed for identifying organisms ?

Answered: 1 week ago