Question: Problem 1. (1) Enter the following data in R and call it veci: 23,45,67,46,57,23,83,59,12,64. Use R functions to find: What is the maximum value? What
Problem 1. (1) Enter the following data in R and call it veci: 23,45,67,46,57,23,83,59,12,64. Use R functions to find: What is the maximum value? What is the minimum value? What is the mean value? (2) The next to last (9th) value in vecl was mis-typed - it should be 42. Change it, and see how the mean has changed. (3) Use R functions to find: How many values are greater than 40? What is the mean of values over 40? (4) Using the data from part (2) to find: a. the sum of vecl b. the mean (using the sum and length function) c. the log (base10) of veci - use log (base=10) d. the difference between each element of vec1 and the mean of vec1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
