Q5 (20 Points) The Conversion From A Temperature Measurement In Degrees Fahrenheit F To Celsius C Is Performed Using…

Transcribed image text:

Q5 (20 Points) The conversion from a temperature measurement in degrees Fahrenheit F to Celsius C is performed using the following equation: c = X(F – 32) Use vector-oriented behavior in R to convert the temperatures 45, 77, 20, 19, 101, 120, and 212 in degrees Fahrenheit to degrees Celsius. 26 (15 Points). Using R, construct and store a 4 x 2 matrix that is filled row-wise with the following values: 4.3, 3.1, 8.2, 9.2, 3.2, 0.9, 1.6, and 6.5, in that order. Q7 (150oints). Using R, overwrite the second column of the matrix you have created in Q6 with the following numbers: 8, 9, 11, and 17 in that order. Save your updated matrix to an object named BruceLee.

Expert's Answer

SOLUTION: 5. R SCRIPT : f <- c(45,77,20,19,101,120,212) c <- (5/9)*(f-32) print(c) OUTPUT: 7.222222 25.000000 -6.666667 -7.222222 38.3…

help

Hire Expert 

Get a Professional Help


200
Select FileChangeRemove

TOP