Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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_step_2

Step: 3

blur-text-image_step3

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